X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft8001-annotate.sh;h=eabec2e06e2f97fc1790cd4ce30a80e402d4a205;hb=15dc66abf02fa22a03d709725bcaeeec4b809834;hp=2496397da3c335997779bae43ba37ec6d32810de;hpb=0825de892f1796e6ca6ac81e0af10f6c136a9f1d;p=git.git diff --git a/t/t8001-annotate.sh b/t/t8001-annotate.sh index 2496397da..45cb60ea4 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_DIRECTORY"/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