diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-14 07:27:59 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-14 07:27:59 +1000 |
commit | f549ad0f374828728dfd206e00e56469edd56d5a (patch) | |
tree | 3db1a47b229044191fd467ba313ca66eabccd086 | |
parent | ebfed34145f2bc76764c4bdf1659a5b890803fcb (diff) |
use git command with message in subprocess if using gpgsign
-rw-r--r-- | pkg/commands/git.go | 6 |
1 files 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 } |