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

Wrong user credentials if mulitple entries of user.name or user.email are in config file #2270

Open
chsxf opened this issue Jan 3, 2025 · 0 comments

Comments

@chsxf
Copy link

chsxf commented Jan 3, 2025

Hi,

This issue applies to the macOS client. I'm currently using version 2.49.1 with internal git.

I have global and local credentials on many of my repositories and Fork doesn't report them correctly.
My understanding of this issue is that Fork stops at the first entry it finds in the git config --list result.

For example, git config --list will return something like this for one of my repositories:

credential.helper=osxkeychain
...
user.name=John Doe
[email protected]
...
[email protected]
...

Running git config user.email in my repository returns [email protected] as expected.
But the General tab in the Settings for This Repository... box shows [email protected].

Thank you for your support on this.

Best of luck for this new year 2025!

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

No branches or pull requests

1 participant