Blame SOURCES/11fe8dc62ed2eb158eaec28af90d2f509e7fd91f.patch

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