Merge branch 'test-git-local-defaultBranch' into release-3.24

Merge-request: !8060
This commit is contained in:
Brad King
2023-01-11 17:13:40 -05:00

View File

@@ -34,7 +34,7 @@ endif()
# Adapt to the system default branch name.
execute_process(
COMMAND ${GIT} config --get init.defaultBranch
COMMAND ${GIT} --git-dir= config --get init.defaultBranch
RESULT_VARIABLE defaultBranchFailed
OUTPUT_VARIABLE defaultBranch
ERROR_VARIABLE defaultBranchError