t / t8001-annotate.shon commit t/t1304: use 'test -r' to test readability rather than looking at mode bits (71c4d6c)
   1#!/bin/sh
   2
   3test_description='git annotate'
   4. ./test-lib.sh
   5
   6PROG='git annotate'
   7. "$TEST_DIRECTORY"/annotate-tests.sh
   8
   9test_expect_success \
  10    'Annotating an old revision works' \
  11    '[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") -eq 2 ] && \
  12     [ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") -eq 2 ]'
  13
  14
  15test_done