diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2007-11-13 23:04:57 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-15 02:18:39 +0300 |
commit | 41ec097aea91b4be038b1c4bbbe1bcb9d4e7aa53 (patch) | |
tree | 329c804cc19276ab7cae2f2ee32b98210303af76 /t | |
parent | 63405283c3c6c55cca465ba21128ec1b354ee799 (diff) |
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>
Diffstat (limited to 't')
-rw-r--r-- | t/t7501-commit.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 9dba104b1f..31a6f63399 100644 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -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 \ 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 |