Skip to content

Commit 5e02afb

Browse files
committed
Fix for parsing non-ASCII chars in status lines
1 parent 105a8c0 commit 5e02afb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/changes.rst

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Changelog
55
2.0.6 - Fixes and Features
66
==========================
77

8+
* Fix: remote output parser now correctly matches refs with non-ASCII
9+
chars in them
810
* Fix: TypeError about passing keyword argument to string decode() on
911
Python 2.6.
1012
* Feature: `setUrl API on Remotes <https://github.com/gitpython-developers/GitPython/pull/446#issuecomment-224670539>`_

git/remote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class FetchInfo(object):
203203
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
204204
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
205205

206-
re_fetch_result = re.compile("^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([/\w_\+\.\-$@#()]+)( \(.*\)?$)?")
206+
re_fetch_result = re.compile('^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
207207

208208
_flag_map = {'!': ERROR,
209209
'+': FORCED_UPDATE,

0 commit comments

Comments
 (0)