mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
"step one towards dealing with gpgsign"
This commit is contained in:
parent
2f50cbf2b8
commit
92e75d4602
2 changed files with 7 additions and 2 deletions
|
@ -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 + "\"")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue