]> git.ipfire.org Git - thirdparty/git.git/blob - t/t8001-annotate.sh
Merge branch 'pb/ci-matrix-wo-shortcut'
[thirdparty/git.git] / t / t8001-annotate.sh
1 #!/bin/sh
2
3 test_description='git annotate'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
7 . ./test-lib.sh
8
9 PROG='git annotate'
10 . "$TEST_DIRECTORY"/annotate-tests.sh
11
12 test_expect_success 'annotate old revision' '
13 git annotate file main >actual &&
14 awk "{ print \$3; }" <actual >authors &&
15 test 2 = $(grep A <authors | wc -l) &&
16 test 2 = $(grep B <authors | wc -l)
17 '
18
19 test_done