Repo.get_config fails with git-init-created .git/config
Bug #768687 reported by
nick bollweg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dulwich |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
A .git/config created by the git command line tool cannot be read by dulwich, due to the default use of tabs for option-value pairs.
The attached patch monkeypatches the option RE of ConfigReader to allow for spaces occuring prior to the option name.
tags: | added: config |
To post a comment you must log in.
Thanks for the patch. Unfortunately monkey patching isn't really an option; we should probably implement a custom config writer/parser.