Skip to content

Commit b306169

Browse files
committed
Merge pull request gitpython-developers#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.
2 parents 35bceb1 + ea5d365 commit b306169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class GitConfigParser(cp.RawConfigParser, object):
124124
#} END configuration
125125

126126
OPTCRE = re.compile(
127-
r'\s?(?P<option>[^:=\s][^:=]*)' # very permissive, incuding leading whitespace
127+
r'\s*(?P<option>[^:=\s][^:=]*)' # very permissive, incuding leading whitespace
128128
r'\s*(?P<vi>[:=])\s*' # any number of space/tab,
129129
# followed by separator
130130
# (either : or =), followed

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy