Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e02afb

Browse files
committed
Fix for parsing non-ASCII chars in status lines
1 parent105a8c0 commit5e02afb

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<<xforxinrange(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)

[8]ページ先頭

©2009-2025 Movatter.jp