Treat GIT_PASSTHROUGH as though git_cred_acquire_cb isn't set.

This commit is contained in:
Chris Hescock 2015-11-20 11:26:26 -05:00
parent 15e6a5afb9
commit efd9ab568b

View File

@ -930,7 +930,10 @@ replay:
cred_error = t->owner->cred_acquire_cb(&t->cred, t->owner->url, cred_error = t->owner->cred_acquire_cb(&t->cred, t->owner->url,
t->connection_data.user, allowed_types, t->owner->cred_acquire_payload); t->connection_data.user, allowed_types, t->owner->cred_acquire_payload);
if (cred_error < 0) /* Treat GIT_PASSTHROUGH as though git_cred_acquire_cb isn't set */
if (cred_error == GIT_PASSTHROUGH)
cred_error = 1;
else if (cred_error < 0)
return cred_error; return cred_error;
} }