eugeneware / eugeneware/git-config

Gets only the last values when section in gitconfig is duplicated

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
25
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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:

``` js
{
user: {
email: 'zoltan@xxx.xxx'
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.