summaryrefslogtreecommitdiff
path: root/t/t7502-commit.sh
diff options
context:
space:
mode:
authorMarcel Koeppen <git-dev@marzelpan.de>2008-05-16 00:21:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-17 05:05:22 (GMT)
commitd16d5cdf59f44e412525a270885488fccb8e4e30 (patch)
treeb2477228dc7def2cad30c57a38d512bed2188f7e /t/t7502-commit.sh
parentbe4d2c83b68a96285cc05036add4d64d324e52d9 (diff)
downloadgit-d16d5cdf59f44e412525a270885488fccb8e4e30.zip
git-d16d5cdf59f44e412525a270885488fccb8e4e30.tar.gz
git-d16d5cdf59f44e412525a270885488fccb8e4e30.tar.bz2
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 <git-dev@marzelpan.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7502-commit.sh')
-rwxr-xr-xt/t7502-commit.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh
index 018060c..3531a99 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