diff --git a/pkg/cmd/auth/shared/git_credential.go b/pkg/cmd/auth/shared/git_credential.go index cba252d72..c98992a76 100644 --- a/pkg/cmd/auth/shared/git_credential.go +++ b/pkg/cmd/auth/shared/git_credential.go @@ -52,7 +52,7 @@ func (flow *GitCredentialFlow) Prompt(hostname string) error { // * https://git-scm.com/docs/git-config#_description // * https://github.com/cli/cli/pull/4109 var errNotInstalled *git.NotInstalled - if errors.As(err, &errNotInstalled) { + if errors.As(configuredHelperErr, &errNotInstalled) { return configuredHelperErr }