1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-11 11:42:12 +02:00

add overrideGpg switch, which prevents lazygit from spawning a separate process when using GPG

Signed-off-by: Randshot <randshot@norealm.xyz>
This commit is contained in:
Randshot 2020-05-30 23:39:07 +02:00
parent e73f4c6b7e
commit 65e955c622
No known key found for this signature in database
GPG Key ID: 47E0D72B4F839031
2 changed files with 6 additions and 0 deletions

View File

@ -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")

View File

@ -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