mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
t7501-commit.sh: Not all seds understand option -i
Use mv instead. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This commit is contained in:
@@ -69,7 +69,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
|
||||
|
||||
@@ -88,7 +89,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user