Skip to content
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: correct regex for credential helpers #46597

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

barucden
Copy link
Contributor

@barucden barucden commented Sep 2, 2022

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

@giordano giordano added the libgit2 The libgit2 library or the LibGit2 stdlib module label Sep 2, 2022
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
@barucden
Copy link
Contributor Author

barucden commented Sep 6, 2022

The branch has been rebased. As far as I can tell, the test errors do not seem related so far.

Can somebody review the changes, please? Maybe @fredrikekre?

@fredrikekre fredrikekre added backport 1.6 Change should be backported to release-1.6 backport 1.8 Change should be backported to release-1.8 labels Sep 6, 2022
@fredrikekre fredrikekre merged commit ea74208 into JuliaLang:master Sep 6, 2022
@barucden barucden deleted the credential_helpers branch September 6, 2022 13:36
@KristofferC KristofferC mentioned this pull request Sep 7, 2022
28 tasks
KristofferC pushed a commit that referenced this pull request Sep 16, 2022
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)
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.6 Change should be backported to release-1.6 libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Libgit2 ERROR: AssertionError: name == "helper"
4 participants