rebase: use correct base for --keep-base when a branch is given
[alt-git.git] / t / t8001-annotate.sh
bloba536a621b24a4ee0a010fd5a3e565d2711d67806
1 #!/bin/sh
3 test_description='git annotate'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 . ./test-lib.sh
9 PROG='git annotate'
10 . "$TEST_DIRECTORY"/annotate-tests.sh
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)
19 test_done