Fix mistaken git installation error check

This commit is contained in:
William Martin 2024-05-16 14:38:51 +02:00
parent e07a26d81c
commit 37abb3ec96

View file

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