8000 git config parser dosn't account for included files in a .gitconfig · Issue #201 · gitpython-developers/GitPython · GitHub
[go: up one dir, main page]

Skip to content
git config parser dosn't account for included files in a .gitconfig #201
Closed
@arecarn

Description

@arecarn

The git config parser don't look into files that are included into the .gitconfig file.

For example:


~/.gitconfig

[user]
    name = Ryan Carney
    email = email@personal.com
[include]
    path = ~/.gitconfig_local

~/.gitconfig_local

[user]
    email = email@work.com

gitpython_test.py

import git
repo = git.Repo("test_repo")
reader = repo.config_reader()
print reader.get("user", "email")

Given the above configuration you would expect gitpython_test.py to print email@work.com but instead it printsemail@personal.com

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0