diff options
author | Chris Hescock <chescock@vistaprint.com> | 2015-11-20 19:26:26 +0300 |
---|---|---|
committer | Chris Hescock <chescock@vistaprint.com> | 2015-12-01 18:54:20 +0300 |
commit | efd9ab568b8b56e422e0497badd0368948fba590 (patch) | |
tree | c9d1bc23042342bcd105178d8138ea00291bbba7 | |
parent | 15e6a5afb9217b09e60cd0aef48e0a7781f3922f (diff) |
Treat GIT_PASSTHROUGH as though git_cred_acquire_cb isn't set.
-rw-r--r-- | src/transports/winhttp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c index 77d939bd3..9e97a279d 100644 --- a/src/transports/winhttp.c +++ b/src/transports/winhttp.c @@ -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; } |