X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft8001-annotate.sh;h=3a6490e8f864b3b3193a7b86d54a0e8d81d0dd20;hb=d5f6a01af0658bc0ec5f068d81ba321be94526d5;hp=2496397da3c335997779bae43ba37ec6d32810de;hpb=7be14b49ac14da65764a115d7cb64c8a72ab5b61;p=git.git diff --git a/t/t8001-annotate.sh b/t/t8001-annotate.sh index 2496397da..3a6490e8f 100755 --- a/t/t8001-annotate.sh +++ b/t/t8001-annotate.sh @@ -6,4 +6,10 @@ test_description='git-annotate' PROG='git annotate' . ../annotate-tests.sh +test_expect_success \ + 'Annotating an old revision works' \ + '[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") -eq 2 ] && \ + [ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") -eq 2 ]' + + test_done