File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,13 @@ then
127127 export GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS
128128fi
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...
You can’t perform that action at this time.
0 commit comments