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>
This commit is contained in:
Marcel Koeppen 2008-05-16 02:21:43 +02:00 коммит произвёл Junio C Hamano
Родитель be4d2c83b6
Коммит d16d5cdf59
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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