1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Fix tests and add test scenarios for amend.

This commit is contained in:
Kristijan Husak
2018-10-08 22:19:42 +02:00
parent 190309e5c1
commit 4287f8ae90
3 changed files with 78 additions and 9 deletions

View File

@ -226,7 +226,7 @@ func (gui *Gui) handleAmendCommitPress(g *gocui.Gui, filesView *gocui.View) erro
lastCommitMsg := gui.State.Commits[0].Name
_, err := gui.GitCommand.Commit(lastCommitMsg, true)
if err != nil {
gui.createErrorPanel(g, err.Error())
return gui.createErrorPanel(g, err.Error())
}
return gui.refreshSidePanels(g)