summaryrefslogtreecommitdiffstats
path: root/pkg/gui/commit_message_panel.go
diff options
context:
space:
mode:
authorKristijan Husak <husakkristijan@gmail.com>2018-09-25 22:11:51 +0200
committerKristijan Husak <husakkristijan@gmail.com>2018-09-25 22:11:51 +0200
commit28fe3d6cf989e9fe40292a5b40ed9bc2a8cdeaa6 (patch)
tree50213ad8cf56ec4cb8d7ece860635b1d94c2d116 /pkg/gui/commit_message_panel.go
parentb6b21bc98e3a34ffa4cd9d94f4ec79fee7f84daf (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.go3
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 {