From f549ad0f374828728dfd206e00e56469edd56d5a Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 14 Aug 2018 07:27:59 +1000 Subject: [PATCH] use git command with message in subprocess if using gpgsign --- pkg/commands/git.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 016a08fc6..628b5f665 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -252,13 +252,13 @@ func (c *GitCommand) AbortMerge() (string, error) { // Commit commit to git func (c *GitCommand) Commit(g *gocui.Gui, message string) (*exec.Cmd, error) { - command := "git commit -m \"" + message + "\"" + command := "commit -m \"" + message + "\"" gpgsign, _ := gitconfig.Global("commit.gpgsign") if gpgsign != "" { - return c.OSCommand.PrepareSubProcess("git", "commit") + return c.OSCommand.PrepareSubProcess("git", command) } // TODO: make these runDirectCommand functions just return an error - _, err := c.OSCommand.RunDirectCommand(command) + _, err := c.OSCommand.RunDirectCommand("git " + command) return nil, err }