Skip to content

Commit 472f74d

Browse files
giordanostaticfloat
authored andcommitted
Create main branch before pushing to remote
1 parent 175889f commit 472f74d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AutoBuild.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ function push_jll_package(name, build_version;
13121312
# Next, push up the wrapper code repository
13131313
wrapper_repo = LibGit2.GitRepo(code_dir)
13141314
LibGit2.add!(wrapper_repo, ".")
1315-
LibGit2.commit(wrapper_repo, "$(name)_jll build $(build_version)")
1315+
commit = LibGit2.commit(wrapper_repo, "$(name)_jll build $(build_version)")
13161316
Wizard.with_gitcreds(gh_username, gh_auth.token) do creds
13171317
refspecs = ["refs/heads/main"]
13181318
# Fetch the remote repository, to have the relevant refspecs up to date.
@@ -1321,6 +1321,7 @@ function push_jll_package(name, build_version;
13211321
refspecs=refspecs,
13221322
credentials=creds,
13231323
)
1324+
LibGit2.branch!(wrapper_repo, "main", commit; track="main")
13241325
LibGit2.push(
13251326
wrapper_repo;
13261327
refspecs=refspecs,

0 commit comments

Comments
 (0)