summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6340528)
raw | patch | inline | side by side (parent: 6340528)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Tue, 13 Nov 2007 20:04:57 +0000 (21:04 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 Nov 2007 23:18:39 +0000 (15:18 -0800) |
Use mv instead.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh | patch | blob | history |
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index 9dba104b1f8bf9125f1a947a2fd115b684a94095..31a6f63399a97902e493c453a3f3117bc44ef2f7 100644 (file)
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
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
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