From: Alex Riesen Date: Mon, 5 Feb 2007 13:04:09 +0000 (+0100) Subject: Avoid ActiveState Perl IO in t800[12] X-Git-Tag: v1.5.0-rc4~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=563b43ee45b87cf1e4bba99d3d0216f396d5c873;p=git.git Avoid ActiveState Perl IO in t800[12] Use sed instead, it comes with cygwin and there is almost no chance of someone installing a sed with default CRLF lineendings by accident. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index b5ceba4ac..87403da78 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -113,7 +113,8 @@ test_expect_success \ test_expect_success \ 'some edit' \ - 'perl -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file && + 'mv file file.orig && + sed -e "s/^3A/99/" -e "/^1A/d" < file.orig > file && GIT_AUTHOR_NAME="D" git commit -a -m "edit"' test_expect_success \