From 138981ae049ff291753eba4e4bc236a12b641e60 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 6 Apr 2011 20:27:29 +0200 Subject: Revert "gbp: restrict splitting output of ls-tree to 3, since filenames might contain spaces" This reverts commit 8f14b0ace5934c27261f388820f5c3c587c97fba. --- gbp/git.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gbp/git.py b/gbp/git.py index 40dc7f74..96c2255c 100644 --- a/gbp/git.py +++ b/gbp/git.py @@ -536,8 +536,7 @@ class GitRepository(object): out, ret = self.__git_getoutput('ls-tree', args, cwd=path) for line in out: - # Restrict to 3 splits, since filenames might contain spaces - mode, objtype, commit, name = line.split(None, 3) + mode, objtype, commit, name = line.split() # A submodules is shown as "commit" object in ls-tree: if objtype == "commit": nextpath = os.path.sep.join([path, name]) -- cgit v1.2.3