mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Use -c init.defaultBranch=master to pass the desired main branch to git init
Older versions of git don't support the -b option yet. However, no version of git complains about the -c option, even when the init.defaultBranch config is not supported.
This commit is contained in:
parent
f4ada537d2
commit
82b3803164
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ func (self *Shell) StartBisect(good string, bad string) *Shell {
|
|||
}
|
||||
|
||||
func (self *Shell) Init() *Shell {
|
||||
self.RunCommand([]string{"git", "init", "-b", "master"})
|
||||
self.RunCommand([]string{"git", "-c", "init.defaultBranch=master", "init"})
|
||||
return self
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue