Commit 7f2c1469 by Edward Thomson

Merge pull request #3528 from chescock/Passthrough-from-credential-callback

Treat GIT_PASSTHROUGH as though git_cred_acquire_cb isn't set.
parents 30c8e260 efd9ab56
......@@ -930,7 +930,10 @@ replay:
cred_error = t->owner->cred_acquire_cb(&t->cred, t->owner->url,
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment