-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Libgit2 ERROR: AssertionError: name == "helper" #45693
Comments
I am still getting this error (Julia 1.7.2 on Windows 10):
|
It is happening with 1.8 too. |
I am guessing that you have a messed up or unexpected git config file on your system. LibGit2 is looking for the julia/stdlib/LibGit2/src/gitcredential.jl Lines 222 to 224 in bf53498
|
@fredrikekre It seems to me the code is making incorrect assumptions of what that "credential helper" entry should be. |
A manual override of this form removes the error.
Nevertheless, this should probably be fixed up. At least on Windows, this is likely to happen to other users. |
@fredrikekre The issue is caused by the newest Git: Git for Windows v2.23.0 introduced a meta credential helper. |
@fredrikekre Ping. |
Meaning: has there been any progress on fixing this issue? |
Julia 1.8 release is still broken. |
as is 1.9, it seems
|
I fixed it by editing .gitconfig and leaving the first [credential], deleting the second. |
I looked into this issue. Although it does not involve LibGit2, I think this (linux) example shows the problem:
The config file contains (
Then the following query
prints
Adjusting the regex
helps:
|
If you mean that the fix might be as easy as
then I agree with you. julia/stdlib/LibGit2/src/gitcredential.jl Line 222 in bf53498
|
I do think that it should help with your problem. But I'm worried about something else breaking. I'll prepare a PR and let's see what people (and the testset) think. |
The previous regex for credential helpers included even the following credential: ``` [credential "helperselector"] selected = manager-core ``` which gets introduced by Git for Windows and fails our assumption about what a credential helper is. The commit also removes a test that mirrors what `credential_helpers` does (otherwise, we would have to maintain the same regex at two places, the definition of `credential_helpers` and the test case). Fixes JuliaLang#45693
The previous regex for credential helpers included even the following credential: ``` [credential "helperselector"] selected = manager-core ``` which gets introduced by Git for Windows and fails our assumption about what a credential helper is. The commit also removes a test that mirrors what `credential_helpers` does (otherwise, we would have to maintain the same regex at two places, the definition of `credential_helpers` and the test case). Fixes JuliaLang#45693
The previous regex for credential helpers included even the following credential: ``` [credential "helperselector"] selected = manager-core ``` which gets introduced by Git for Windows and fails our assumption about what a credential helper is. The commit also removes a test that mirrors what `credential_helpers` does (otherwise, we would have to maintain the same regex at two places, the definition of `credential_helpers` and the test case). Fixes #45693 (cherry picked from commit ea74208)
When cloning a package (upon adding a package from Github using a url), I have found this error:
](https://discourse.julialang.org/t/libgit2-error-assertionerror-name-helper/82783)
The text was updated successfully, but these errors were encountered: