X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fannotate-tests.sh;h=1148b0257dafd4e9b63e030052b47b527b5c0d3b;hb=bc483d04804888c2da64e4c6685c2860a9041122;hp=114938c3ff18fadb130e6809fc14e89cfe3f36f2;hpb=8c3222079a9aca6622c6098a9157e59dddb1cfff;p=git.git diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index 114938c3f..1148b0257 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -111,9 +111,7 @@ test_expect_success \ test_expect_success \ 'some edit' \ - 'mv file file1 && - sed -e 1d -e "5s/3A/99/" file1 >file && - rm -f file1 && + 'perl -p -i.orig -e "s/^1A.*\n$//; s/^3A/99/" file && GIT_AUTHOR_NAME="D" git commit -a -m "edit"' test_expect_success \