diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2007-11-13 21:04:57 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-14 15:18:39 -0800 |
commit | 41ec097aea91b4be038b1c4bbbe1bcb9d4e7aa53 (patch) | |
tree | 329c804cc19276ab7cae2f2ee32b98210303af76 /t/t7501-commit.sh | |
parent | 63405283c3c6c55cca465ba21128ec1b354ee799 (diff) | |
download | git-41ec097aea91b4be038b1c4bbbe1bcb9d4e7aa53.tar.gz git-41ec097aea91b4be038b1c4bbbe1bcb9d4e7aa53.tar.xz |
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/t7501-commit.sh')
-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 9dba104b1..31a6f6339 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 |