mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-04 03:48:07 +02:00
use git command with message in subprocess if using gpgsign
This commit is contained in:
parent
ebfed34145
commit
f549ad0f37
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user