From 37abb3ec96a48c0082d5000d580e398095a9efeb Mon Sep 17 00:00:00 2001 From: William Martin Date: Thu, 16 May 2024 14:38:51 +0200 Subject: [PATCH] Fix mistaken git installation error check --- pkg/cmd/auth/shared/git_credential.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }