git-config icon indicating copy to clipboard operation
git-config copied to clipboard

Gets only the last values when section in gitconfig is duplicated

Open zkochan opened this issue 9 years ago • 0 comments

For some reason, in my .gitconfig I have the [user] section duplicated (on windows).

So it looks like this:

[user]
    name = Zoltan Kochan
[user]
    email = [email protected]

git-config returns a config with a user property that contains only the email:

{
  user: {
    email: '[email protected]'
  }
}

zkochan avatar Mar 28 '16 16:03 zkochan