mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
Manually rename branch to "main" after initializing
This commit is contained in:
parent
cff92d6e12
commit
c2763846c7
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ func construct():
|
||||||
game.global_shell.run("mkdir '%s'" % repo.path)
|
game.global_shell.run("mkdir '%s'" % repo.path)
|
||||||
game.global_shell.cd(repo.path)
|
game.global_shell.cd(repo.path)
|
||||||
game.global_shell.run("git init")
|
game.global_shell.run("git init")
|
||||||
|
game.global_shell.run("git symbolic-ref HEAD refs/heads/main")
|
||||||
|
|
||||||
# Add other repos as remotes.
|
# Add other repos as remotes.
|
||||||
for r2 in repos:
|
for r2 in repos:
|
||||||
|
|
Loading…
Reference in a new issue