mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
"step one towards dealing with gpgsign"
This commit is contained in:
@ -447,7 +447,12 @@ func removeFile(file GitFile) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func gitCommit(message string) (string, error) {
|
||||
func gitCommit(g *gocui.Gui, message string) (string, error) {
|
||||
out, _ := runDirectCommand("git config --get commit.gpgsign")
|
||||
if out != "" {
|
||||
runSubProcess(g, "git", "commit", "-m", "\""+message+"\"")
|
||||
return "", nil
|
||||
}
|
||||
return runDirectCommand("git commit -m \"" + message + "\"")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user