X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft8001-annotate.sh;h=eabec2e06e2f97fc1790cd4ce30a80e402d4a205;hb=e9c34c233f2e838c334f6e8a807ebc6a988e9509;hp=2496397da3c335997779bae43ba37ec6d32810de;hpb=7941602983f68e2cddafca5a2da8215d1271742b;p=git.git diff --git a/t/t8001-annotate.sh b/t/t8001-annotate.sh index 2496397da..eabec2e06 100755 --- a/t/t8001-annotate.sh +++ b/t/t8001-annotate.sh @@ -1,9 +1,15 @@ #!/bin/sh -test_description='git-annotate' +test_description='git annotate' . ./test-lib.sh 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