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

Commitbdf2e66

Browse files
committed
Fix parsing for files with whitespace
Currently, the Tree object won't include any files that containwhitespace. split(c, 4) can return a 5-tuple, but we want a 4-tupleinstead.Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
1 parent4c39f9d commitbdf2e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/git/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def content_from_string(repo, text):
4545
``git.Blob`` or ``git.Tree``
4646
"""
4747
try:
48-
mode,typ,id,name=text.expandtabs(1).split(" ",4)
48+
mode,typ,id,name=text.expandtabs(1).split(" ",3)
4949
except:
5050
returnNone
5151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp