Skip to content

Commit db489ea

Browse files
bkeringitster
authored andcommitted
completion: tests: always use 'master' for default initial branch name
The default initial branch name can normally be configured using the GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME environment variable. However, when testing e.g. <rev> completion it's convenient to know the exact initial branch name that will be used. To achieve that without too much trouble it is considered sufficient to force the default initial branch name to 'master' for all of t9902-completion.sh. Signed-off-by: Britton Leo Kerin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e79552d commit db489ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t9902-completion.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
test_description='test bash completion'
77

8+
# Override environment and always use master for the default initial branch
9+
# name for these tests, so that rev completion candidates are as expected.
10+
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
11+
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
12+
813
. ./lib-bash.sh
914

1015
complete ()

0 commit comments

Comments
 (0)