diff options
author | Vincent Driessen <me@nvie.com> | 2016-05-30 21:20:47 +0200 |
---|---|---|
committer | Vincent Driessen <me@nvie.com> | 2016-05-30 21:23:45 +0200 |
commit | 25844b80c56890abc79423a7a727a129b2b9db85 (patch) | |
tree | 3c5e07a681ec8e60c71cc5185f5d8c01cb6ae25b /git/remote.py | |
parent | 2f91ab7bb0dadfd165031f846ae92c9466dceb66 (diff) | |
download | gitpython-25844b80c56890abc79423a7a727a129b2b9db85.tar.gz |
Fix regex
This catches the case where the matched line contains "(" or ")"
characters.
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py index 30e32ae3..42753977 100644 --- a/git/remote.py +++ b/git/remote.py @@ -204,7 +204,7 @@ class FetchInfo(object): NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \ FAST_FORWARD, ERROR = [1 << x for x in range(8)] - re_fetch_result = re.compile("^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([/\w_\+\.\-$@#]+)( \(.*\)?$)?") + re_fetch_result = re.compile("^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([/\w_\+\.\-$@#()]+)( \(.*\)?$)?") _flag_map = {'!': ERROR, '+': FORCED_UPDATE, |