Browse Source

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>
maint
Johannes Sixt 18 years ago committed by Junio C Hamano
parent
commit
41ec097aea
  1. 6
      t/t7501-commit.sh

6
t/t7501-commit.sh

@ -79,7 +79,8 @@ test_expect_success \ @@ -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

@ -98,7 +99,8 @@ test_expect_success \ @@ -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


Loading…
Cancel
Save