Code

Merge branch 'jl/daemon'
[git.git] / t / t8001-annotate.sh
index 9e5a04b0f93fca15628acc93d4c2dcb896cba0d6..3a6490e8f864b3b3193a7b86d54a0e8d81d0dd20 100755 (executable)
@@ -4,6 +4,12 @@ test_description='git-annotate'
 . ./test-lib.sh
 
 PROG='git annotate'
-source ../annotate-tests.sh
+. ../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