]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib-functions.sh
Merge branch 'dl/checkout-p-merge-base'
[thirdparty/git.git] / t / test-lib-functions.sh
index eca4d311efb4f7334b6965f379501e4ab0c3c9d0..999982fe4a9bd6714bf466c59f3627bafe142405 100644 (file)
@@ -1202,7 +1202,9 @@ test_create_repo () {
        mkdir -p "$repo"
        (
                cd "$repo" || error "Cannot setup test environment"
-               "${GIT_TEST_INSTALLED:-$GIT_EXEC_PATH}/git$X" init \
+               "${GIT_TEST_INSTALLED:-$GIT_EXEC_PATH}/git$X" -c \
+                       init.defaultBranch="${GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME-master}" \
+                       init \
                        "--template=$GIT_BUILD_DIR/templates/blt/" >&3 2>&4 ||
                error "cannot run git init -- have you built things yet?"
                mv .git/hooks .git/hooks-disabled