@matheusbsbs / matheus-bagliano / commits / 41ec097aea
Fork 0

t7501-commit.sh: Not all seds understand option -i

Use mv instead. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed Nov 13, 2007 at 21:04 UTC 41ec097aea91b4be038b1c4bbbe1bcb9d4e7aa53
1 file changed +4 -2
t/t7501-commit.sh
+4 -2
@@ -79,7 +79,8 @@ test_expect_success \
79
80 cat >editor <<\EOF
81 #!/bin/sh
82 -sed -i -e "s/a file/an amend commit/g" $1
82 +sed -e "s/a file/an amend commit/g" < $1 > $1-
83 +mv $1- $1
84 EOF
85 chmod 755 editor
86
@@ -98,7 +99,8 @@ test_expect_success \
99
100 cat >editor <<\EOF
101 #!/bin/sh
101 -sed -i -e "s/amend/older/g" $1
102 +sed -e "s/amend/older/g" < $1 > $1-
103 +mv $1- $1
104 EOF
105 chmod 755 editor
106