-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid credentials result in infinite loop #592
Comments
|
@cschlack I have a small script that I used with callbacks that sets the password once via a callback and on the next call it raises an exception. This sample uses a global variable but you could use an instance variable and achieve the same thing.
|
results in an infinite loop.
According to libgit2/libgit2#3358 and https://libgit2.github.com/libgit2/#HEAD/group/callback/git_cred_acquire_cb
git_cred_acquire_cb()
is supposed to returnGIT_EAUTH
in case of invalid credentials, otherwise the callback will be called indefinitely.Since username and password are static in this example, the callback returns
GIT_OK
(rugged/ext/rugged/rugged_remote.c
Line 155 in 884f367
The text was updated successfully, but these errors were encountered: