X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fannotate-tests.sh;h=cacb273afff1fbddf152bb440451fa141589cf33;hb=6644d2f2c490f8a7081bd7e5da12c19400c8b6ef;hp=b5ceba4acfd8e862cfc5a77672241e07205f70ea;hpb=659db3f673fe199bad6ce9cc625d3a1b098bfbcf;p=git.git diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index b5ceba4ac..cacb273af 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -113,7 +113,9 @@ 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" -e "/^incomplete/d" < file.orig > file && + echo "incomplete" | tr -d "\\012" >>file && GIT_AUTHOR_NAME="D" git commit -a -m "edit"' test_expect_success \