]> git.ipfire.org Git - thirdparty/git.git/blame - t/t8001-annotate.sh
t7[5-9]*: adjust the references to the default branch name "main"
[thirdparty/git.git] / t / t8001-annotate.sh
CommitLineData
7c3ecb65
RA
1#!/bin/sh
2
5be60078 3test_description='git annotate'
334afbc7
JS
4GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
5export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
7c3ecb65
RA
7. ./test-lib.sh
8
8752d11d 9PROG='git annotate'
bfdbee98 10. "$TEST_DIRECTORY"/annotate-tests.sh
7c3ecb65 11
e37f39c1
ES
12test_expect_success 'annotate old revision' '
13 git annotate file master >actual &&
14 awk "{ print \$3; }" <actual >authors &&
4b705f40
JH
15 test 2 = $(grep A <authors | wc -l) &&
16 test 2 = $(grep B <authors | wc -l)
17'
f560069b 18
7c3ecb65 19test_done