Blame SOURCES/11fe8dc62ed2eb158eaec28af90d2f509e7fd91f.patch

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