mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03: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:
@ -255,7 +255,7 @@ func (self *Shell) StartBisect(good string, bad string) *Shell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *Shell) Init() *Shell {
|
func (self *Shell) Init() *Shell {
|
||||||
self.RunCommand([]string{"git", "init", "-b", "master"})
|
self.RunCommand([]string{"git", "-c", "init.defaultBranch=master", "init"})
|
||||||
return self
|
return self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user