Skip to content

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. - #19

Merged
Byron merged 1 commit into
gitpython-developers:masterfrom
jkeating:master
May 24, 2011

Conversation

@jkeating

Copy link
Copy Markdown
Contributor

The regex comments state that any number of leading tabs or spaces
should be allowed, however the regex was only catching zero or one
space. This allows multiple spaces.

The regex comments state that any number of leading tabs or spaces
should be allowed, however the regex was only catching zero or one
space.  This allows multiple spaces.
Byron added a commit that referenced this pull request May 24, 2011
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.
@Byron
Byron merged commit b306169 into gitpython-developers:master May 24, 2011
@Byron

Byron commented May 24, 2011

Copy link
Copy Markdown
Member

Thanks !
This should make the config parsing more flexible.

govtech42 pushed a commit to mirror81/GitPython that referenced this pull request Jul 25, 2026
As taken from https://github.com/gitpython-developers/gitdb/blob/master/gitdb/stream.py#L292
->
NOTE: Behavior changed in PY2.7 onward, which requires special handling to make the tests work properly.
They are thorough, and I assume it is truly working.
Why is this logic as convoluted as it is ? Please look at the table in
gitpython-developers/gitdb#19 to learn about the test-results.
Bascially, on py2.6, you want to use branch 1, whereas on all other python version, the second branch
will be the one that works.
However, the zlib VERSIONs as well as the platform check is used to further match the entries in the
table in the github issue. This is it ... it was the only way I could make this work everywhere.
IT's CERTAINLY GOING TO BITE US IN THE FUTURE ... .
<-

Fixes gitpython-developers#19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants