mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
pkg/git : remove panic in SetupGit method
This commit is contained in:
parent
19a8029795
commit
624d63d2fa
2 changed files with 41 additions and 16 deletions
8
main.go
8
main.go
|
@ -48,6 +48,12 @@ func main() {
|
|||
app.Log.Error(err.Error())
|
||||
panic(err)
|
||||
}
|
||||
app.GitCommand.SetupGit()
|
||||
|
||||
if err := app.GitCommand.SetupGit(); err != nil {
|
||||
app.Log.Error(err.Error())
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
app.Gui.RunWithSubprocesses()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue