Skip to content

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

@chsxf

Description

@chsxf

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
user.email=john.doe@example.com
...
user.email=john.doe@otherdomain.com
...

Running git config user.email in my repository returns john.doe@otherdomain.com as expected.
But the General tab in the Settings for This Repository... box shows john.doe@example.com.

Thank you for your support on this.

Best of luck for this new year 2025!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions