From ec33dd4c530319fc95f5481d057b2ad940e91694 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sat, 11 Aug 2007 22:14:34 +0200 Subject: [PATCH] t7501-commit.sh: Not all seds understand option -i Use mv instead. Signed-off-by: Johannes Sixt --- t/t7501-commit.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 6bd3c9e3e0..d1284140d7 100644 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -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