Browse files

Fix bug in `Storage.ls_tree()` for git filenames containing TAB chara…

…cters
  • Loading branch information...
1 parent 3517167 commit bc7258d4f4a6a99deb503758ef108735ff140a85 @hvr committed Oct 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tracext/git/PyGIT.py
View
2 tracext/git/PyGIT.py
@@ -619,7 +619,7 @@ def ls_tree(self, rev, path=""):
def split_ls_tree_line(l):
"split according to '<mode> <type> <sha> <size>\t<fname>'"
- meta, fname = l.split('\t')
+ meta, fname = l.split('\t', 1)
_mode, _type, _sha, _size = meta.split()
if _size == '-':

0 comments on commit bc7258d

Please sign in to comment.