summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-05-24 10:01:25 -0700
committerSebastian Thiel <byronimo@gmail.com>2011-05-24 10:01:25 -0700
commitb3061698403f0055d1d63be6ab3fbb43bd954e8e (patch)
treea9dfc0859608e882de90d8eb84015fb8a83449e5
parent35bceb16480b21c13a949eadff2aca0e2e5483fe (diff)
parentea5d365a93a98907a1d7c25d433efd06a854109e (diff)
downloadgitpython-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.py2
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