Code

Replace in-place sed in t7502-commit
authorMarcel Koeppen <git-dev@marzelpan.de>
Fri, 16 May 2008 00:21:43 +0000 (02:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 May 2008 05:05:22 +0000 (22:05 -0700)
The in-place mode of sed used in t7502-commit is a non-POSIX extension.
That call of sed is replaced by a more portable version using a temporary file.

Signed-off-by: Marcel Koeppen <git-dev@marzelpan.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7502-commit.sh

index 018060c60f590946c8e02181bfb1f572972bb787..3531a992a9a50e25a1585435e024097c7028af27 100755 (executable)
@@ -166,7 +166,9 @@ test_expect_success 'author different from committer' '
        test_cmp expect actual
 '
 
-sed -i '$d' expect
+mv expect expect.tmp
+sed '$d' < expect.tmp > expect
+rm -f expect.tmp
 echo "# Committer:
 #" >> expect
 unset GIT_COMMITTER_EMAIL