mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Remove mainBranch parameter from Shell.Init()
For older git versions we won't be able to support any other main branch than "master", so hard-code that in Init. This doesn't fix anything for older versions yet; see the next commit for that.
This commit is contained in:
@ -254,8 +254,8 @@ func (self *Shell) StartBisect(good string, bad string) *Shell {
|
||||
return self
|
||||
}
|
||||
|
||||
func (self *Shell) Init(mainBranch string) *Shell {
|
||||
self.RunCommand([]string{"git", "init", "-b", mainBranch})
|
||||
func (self *Shell) Init() *Shell {
|
||||
self.RunCommand([]string{"git", "init", "-b", "master"})
|
||||
return self
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user