From: Marcel Koeppen Date: Fri, 16 May 2008 00:21:43 +0000 (+0200) Subject: Replace in-place sed in t7502-commit X-Git-Tag: v1.5.6-rc0~47 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d16d5cdf59f44e412525a270885488fccb8e4e30;p=git.git Replace in-place sed in t7502-commit 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 Signed-off-by: Junio C Hamano --- diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh index 018060c60..3531a992a 100755 --- a/t/t7502-commit.sh +++ b/t/t7502-commit.sh @@ -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