X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fannotate-tests.sh;h=cacb273afff1fbddf152bb440451fa141589cf33;hb=e340d7d3fa1c5b9a6e7af2e3ee3d526064e56bea;hp=8baf2fef69ba6a67641d2b9ba4dc44468aa31ada;hpb=0f2ca9d5c99436d048bfe0a7161b4365a731938f;p=git.git diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh index 8baf2fef6..cacb273af 100644 --- a/t/annotate-tests.sh +++ b/t/annotate-tests.sh @@ -4,6 +4,7 @@ check_count () { head= case "$1" in -h) head="$2"; shift; shift ;; esac + echo "$PROG file $head" >&4 $PROG file $head >.result || return 1 cat .result | perl -e ' my %expect = (@ARGV); @@ -112,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 \