Blame SOURCES/11fe8dc62ed2eb158eaec28af90d2f509e7fd91f.patch

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