Skip to content

Conversation

chescock
Copy link
Contributor

@chescock chescock commented Dec 1, 2015

Have the winhttp transport treat a GIT_PASSTHROUGH returned from the credential handler the same as if there was no handler. This matches the documentation for git_remote_callbacks.credentials and the implementations of the http and ssl transports.

@nulltoken
Copy link
Member

This looks to dabble in the same areas as libgit2/libgit2sharp#1239. Are there any dependencies?

@chescock
Copy link
Contributor Author

chescock commented Dec 1, 2015

@nulltoken They are certainly related, but I believe each change is useful by itself. If we make the LibGit2Sharp change and not this one, then null credentials wind up throwing a "No error message has been provided by the native library" error. That's not ideal, but it's better than the current behavior of throwing a NullReferenceException.

@nulltoken
Copy link
Member

@chescock Thanks for the feedback

@ethomson
Copy link
Member

Thanks!

ethomson added a commit that referenced this pull request Dec 14, 2015
…llback

Treat GIT_PASSTHROUGH as though git_cred_acquire_cb isn't set.
@ethomson ethomson merged commit 7f2c146 into libgit2:master Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants