Blame SOURCES/11fe8dc62ed2eb158eaec28af90d2f509e7fd91f.patch

9047dc
From a119ca768dfeefef7609b55acbf6400fafb0ee5a Mon Sep 17 00:00:00 2001
9047dc
From: "brian m. carlson" <bk2204@github.com>
9047dc
Date: Mon, 25 Jul 2022 17:29:34 +0000
9047dc
Subject: [PATCH] t: set init.defaultBranch
9047dc
9047dc
Previously, we used a template to set the default HEAD ref to "main" so
9047dc
that our branch would be correct.  It appears that Git has changed
9047dc
things so that that no longer works, so set init.defaultBranch as well
9047dc
to make sure we initialize new repositories properly.
9047dc
---
9047dc
 t/testhelpers.sh | 1 +
9047dc
 1 file changed, 1 insertion(+)
9047dc
9047dc
diff --git a/t/testhelpers.sh b/t/testhelpers.sh
9047dc
index 7c921f43e8..ea5dc05c4f 100644
9047dc
--- a/t/testhelpers.sh
9047dc
+++ b/t/testhelpers.sh
9047dc
@@ -607,6 +607,7 @@ setup() {
9047dc
     git config --global http.$LFS_CLIENT_CERT_URL/.sslKey "$LFS_CLIENT_KEY_FILE"
9047dc
     git config --global http.$LFS_CLIENT_CERT_URL/.sslCert "$LFS_CLIENT_CERT_FILE"
9047dc
     git config --global http.$LFS_CLIENT_CERT_URL/.sslVerify "false"
9047dc
+    git config --global init.defaultBranch main
9047dc
   fi | sed -e 's/^/# /g'
9047dc
 
9047dc
   # setup the git credential password storage