Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Closed
Labels
Milestone
Description
To replicate this bug, first do the following in your CLI
git config --global --add safe.directory /some/directory/here
Then run this python script
from git import GitConfigParserfrom git.config import get_config_pathconfig = GitConfigParser(get_config_path("global"), read_only=False)config.get_values("safe", "directory") # This throws a KeyError
There is a workaround:
config.get_value("safe", "directory")config.get_values("safe", "directory") # This works
I will be taking a look at the code to see if I can submit a PR for this.