Skip to content

Commit

Permalink
Replace in-place sed in t7502-commit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Koeppen authored and Junio C Hamano committed May 17, 2008
1 parent be4d2c8 commit d16d5cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/t7502-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d16d5cd

Please sign in to comment.