← 返回首页
Fix for parsing non-ASCII chars in status lines · gitpython-developers/GitPython@5e02afb · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit 5e02afb

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

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎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)

Footer

© 2026 GitHub, Inc.