Code

Backup the array passed to fetch_pack so we can free items
[git.git] / t / t8001-annotate.sh
index 70e2ad23ae2bdc80aed196f2618c957d98d78410..eabec2e06e2f97fc1790cd4ce30a80e402d4a205 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-test_description='git-annotate'
+test_description='git annotate'
 . ./test-lib.sh
 
 PROG='git annotate'
@@ -8,8 +8,8 @@ PROG='git annotate'
 
 test_expect_success \
     'Annotating an old revision works' \
-    '[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") == 2 ] && \
-     [ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") == 2 ]'
+    '[ $(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