diff options
author | Marcel Koeppen <git-dev@marzelpan.de> | 2008-05-16 02:21:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-16 22:05:22 -0700 |
commit | d16d5cdf59f44e412525a270885488fccb8e4e30 (patch) | |
tree | b2477228dc7def2cad30c57a38d512bed2188f7e /t | |
parent | submodule update: add convenience option --init (diff) | |
download | tgif-d16d5cdf59f44e412525a270885488fccb8e4e30.tar.xz |
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')
-rwxr-xr-x | t/t7502-commit.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh index 018060c60f..3531a992a9 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 |