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

Gets only the last values when section in gitconfig is duplicated #6

Open
zkochan opened this issue Mar 28, 2016 · 0 comments · May be fixed by #7
Open

Gets only the last values when section in gitconfig is duplicated #6

zkochan opened this issue Mar 28, 2016 · 0 comments · May be fixed by #7

Comments

@zkochan
Copy link

zkochan commented Mar 28, 2016

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 = zoltan@xxx.xxx

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

{
  user: {
    email: 'zoltan@xxx.xxx'
  }
}
zkochan added a commit to zkochan/git-config that referenced this issue Mar 28, 2016
unit test added for duplicate user section issue

close eugeneware#6
@zkochan zkochan linked a pull request Mar 28, 2016 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant