mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-20 05:19:24 +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
|
// Commit commit to git
|
||||||
func (c *GitCommand) Commit(g *gocui.Gui, message string) (*exec.Cmd, error) {
|
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")
|
gpgsign, _ := gitconfig.Global("commit.gpgsign")
|
||||||
if gpgsign != "" {
|
if gpgsign != "" {
|
||||||
return c.OSCommand.PrepareSubProcess("git", "commit")
|
return c.OSCommand.PrepareSubProcess("git", command)
|
||||||
}
|
}
|
||||||
// TODO: make these runDirectCommand functions just return an error
|
// TODO: make these runDirectCommand functions just return an error
|
||||||
_, err := c.OSCommand.RunDirectCommand(command)
|
_, err := c.OSCommand.RunDirectCommand("git " + command)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user