From c27db4a84bee8282942bfdbbc086e112ced923a8 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Mon, 11 Apr 2022 15:30:34 -0700 Subject: [PATCH] Explicitly set git init branch Make main the default branch with git init as not all systems will share the same default branch name value and Clear Linux uses main for the package ecosystem. Signed-off-by: William Douglas --- autospec/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autospec/git.py b/autospec/git.py index 7fe807e..fcccfe3 100644 --- a/autospec/git.py +++ b/autospec/git.py @@ -29,7 +29,7 @@ from util import call, write_out def commit_to_git(config, name, success): """Update package's git tree for autospec managed changes.""" path = config.download_path - call("git init", stdout=subprocess.DEVNULL, cwd=path) + call("git init -b main", stdout=subprocess.DEVNULL, cwd=path) # This config is used for setting the remote URI, so it is optional. if config.git_uri: