diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-05-24 10:01:25 -0700 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-05-24 10:01:25 -0700 |
commit | b3061698403f0055d1d63be6ab3fbb43bd954e8e (patch) | |
tree | a9dfc0859608e882de90d8eb84015fb8a83449e5 | |
parent | 35bceb16480b21c13a949eadff2aca0e2e5483fe (diff) | |
parent | ea5d365a93a98907a1d7c25d433efd06a854109e (diff) | |
download | gitpython-b3061698403f0055d1d63be6ab3fbb43bd954e8e.tar.gz |
Merge pull request #19 from jkeating/master
As the commit says, the current option regex only matches zero or one leading space, although the comments state that any number of leading spaces are allowed.
-rw-r--r-- | git/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py index f1a8832e..209f2ffe 100644 --- a/git/config.py +++ b/git/config.py @@ -124,7 +124,7 @@ class GitConfigParser(cp.RawConfigParser, object): #} END configuration OPTCRE = re.compile( - r'\s?(?P<option>[^:=\s][^:=]*)' # very permissive, incuding leading whitespace + r'\s*(?P<option>[^:=\s][^:=]*)' # very permissive, incuding leading whitespace r'\s*(?P<vi>[:=])\s*' # any number of space/tab, # followed by separator # (either : or =), followed |