diff options
author | Kristijan Husak <husakkristijan@gmail.com> | 2018-09-25 22:11:51 +0200 |
---|---|---|
committer | Kristijan Husak <husakkristijan@gmail.com> | 2018-09-25 22:11:51 +0200 |
commit | 28fe3d6cf989e9fe40292a5b40ed9bc2a8cdeaa6 (patch) | |
tree | 50213ad8cf56ec4cb8d7ece860635b1d94c2d116 /pkg/gui/commit_message_panel.go | |
parent | b6b21bc98e3a34ffa4cd9d94f4ec79fee7f84daf (diff) |
Use confirmation popup for amending last commit.
Diffstat (limited to 'pkg/gui/commit_message_panel.go')
-rw-r--r-- | pkg/gui/commit_message_panel.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index 93a3e1503..c26b5573a 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -12,8 +12,7 @@ func (gui *Gui) handleCommitConfirm(g *gocui.Gui, v *gocui.View) error { if message == "" { return gui.createErrorPanel(g, gui.Tr.SLocalize("CommitWithoutMessageErr")) } - amendCommit := v.Title == gui.Tr.SLocalize("AmendLastCommit") - sub, err := gui.GitCommand.Commit(message, amendCommit) + sub, err := gui.GitCommand.Commit(message, false) if err != nil { // TODO need to find a way to send through this error if err != gui.Errors.ErrSubProcess { |