Skip to content

Commit 08bf7b7

Browse files
committed
fixup! breaking-changes: switch default branch to main
1 parent a83cd4d commit 08bf7b7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

t/test-lib.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,13 @@ then
127127
export GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS
128128
fi
129129

130-
# Explicitly set the default branch name for testing, to avoid the
131-
# transitory "git init" warning under --verbose.
132-
: ${GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME:=master}
133-
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
130+
if test -z "$GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME"
131+
then
132+
# Explicitly set the default branch name for testing, to avoid the
133+
# transitory "git init" warning under --verbose.
134+
: ${GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME:=master}
135+
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
136+
fi
134137

135138
################################################################
136139
# It appears that people try to run tests without building...

0 commit comments

Comments
 (0)