1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-24 08:52:21 +02:00

if you are using gpgsign, must use git editor to commit

This commit is contained in:
Jesse Duffield 2018-08-11 19:28:32 +10:00
parent 471a7de418
commit 8f6329c402

View File

@ -415,7 +415,7 @@ func removeFile(file GitFile) error {
func gitCommit(g *gocui.Gui, message string) (string, error) {
gpgsign, _ := gitconfig.Global("commit.gpgsign")
if gpgsign != "" {
runSubProcess(g, "bash", "-c", "git commit -m \""+message+"\"")
runSubProcess(g, "git", "commit")
return "", nil
}
userName, err := gitconfig.Username()