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:
Johannes Sixt
2007-08-11 22:14:34 +02:00
parent decd700792
commit ec33dd4c53

View File

@@ -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