Skip to content

Commit

Permalink
t7501-commit.sh: Not all seds understand option -i
Browse files Browse the repository at this point in the history
Use mv instead.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed Nov 14, 2007
1 parent 6340528 commit 41ec097
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/t7501-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ test_expect_success \

cat >editor <<\EOF
#!/bin/sh
sed -i -e "s/a file/an amend commit/g" $1
sed -e "s/a file/an amend commit/g" < $1 > $1-
mv $1- $1
EOF
chmod 755 editor

Expand All @@ -98,7 +99,8 @@ test_expect_success \

cat >editor <<\EOF
#!/bin/sh
sed -i -e "s/amend/older/g" $1
sed -e "s/amend/older/g" < $1 > $1-
mv $1- $1
EOF
chmod 755 editor

Expand Down

0 comments on commit 41ec097

Please sign in to comment.