Skip to content

Commit da32b59

Browse files
Fix lazygit's UI becoming unresponsive when a background fetch asks for a passphrase (#4586)
Fix a regression introduced with #4525. This fixes the problem that background fetching makes lazygit hang when the fetch request needs to prompt for a passphrase. For Mac users who use the keychain to store their ssh passphrases, this can happen when lazygit is running while the machine goes to sleep, because macOS looks the keychain in that case.
2 parents 6705428 + 2a8ef71 commit da32b59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/commands/oscommands/cmd_obj.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ func (self *CmdObj) PromptOnCredentialRequest(task gocui.Task) *CmdObj {
196196

197197
func (self *CmdObj) FailOnCredentialRequest() *CmdObj {
198198
self.credentialStrategy = FAIL
199+
self.usePty = true
199200

200201
return self
201202
}

0 commit comments

Comments
 (0)