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>
Marcel Koeppen committed
May 16, 2008 at 02:21 UTC
d16d5cdf59f44e412525a270885488fccb8e4e30
1 file changed
+3
-1
t/t7502-commit.sh
+3
-1
@@ -166,7 +166,9 @@ test_expect_success 'author different from committer' '
166
test_cmp expect actual
167
'
168
169
-sed -i '$d' expect
169
+mv expect expect.tmp
170
+sed '$d' < expect.tmp > expect
171
+rm -f expect.tmp
172
echo "# Committer:
173
#" >> expect
174
unset GIT_COMMITTER_EMAIL