diff --git a/pkg/commands/git.go b/pkg/commands/git.go index f7e004108..61daa06d9 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -435,6 +435,11 @@ func (c *GitCommand) AbortMerge() error { // usingGpg tells us whether the user has gpg enabled so that we can know // whether we need to run a subprocess to allow them to enter their password func (c *GitCommand) usingGpg() bool { + overrideGpg := c.Config.GetUserConfig().GetBool("git.overrideGpg") + if overrideGpg { + return false + } + gpgsign, _ := c.getLocalGitConfig("commit.gpgsign") if gpgsign == "" { gpgsign, _ = c.getGlobalGitConfig("commit.gpgsign") diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 9938113d7..f3c5a7690 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -270,6 +270,7 @@ git: args: "" skipHookPrefix: 'WIP' autoFetch: true + overrideGpg: false # prevents lazygit from spawning a separate process when using GPG update: method: prompt # can be: prompt | background | never days: 14 # how often a update is checked for