From c87a6fd4d09eabd1a579853310a3cb4d86bf846a Mon Sep 17 00:00:00 2001 From: Peter Grayson Date: Fri, 23 Apr 2021 16:22:26 -0400 Subject: [PATCH] Configure init.defaultBranch in test repos Doing so squashes the informational message about default branches emitted by Git when running test_create_repo. --- t/test-lib-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index f0ad0bf..e94e5e3 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -1131,7 +1131,7 @@ test_create_repo () { mkdir -p "$repo" ( cd "$repo" || error "Cannot setup test environment" - git init >&3 2>&4 || + git -c init.defaultBranch=master init >&3 2>&4 || error "cannot run git init" echo "empty start" | git commit-tree $(git write-tree) >.git/refs/heads/master 2>&4 || -- 2.11.4.GIT