mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-20 22:17:57 +00:00
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 <william.douglas@intel.com>
This commit is contained in:
committed by
William Douglas
parent
145938d342
commit
c27db4a84b
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user