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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
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