aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-04-06 20:27:29 +0200
committerGuido Günther <agx@sigxcpu.org>2011-04-06 20:34:58 +0200
commit138981ae049ff291753eba4e4bc236a12b641e60 (patch)
tree631d01df5f9f585e0afc1c1c7cfd5a19c14fd7a2 /gbp
parentdff62f20a00b7fde5f13754fb473c31aa5f91296 (diff)
Revert "gbp: restrict splitting output of ls-tree to 3, since filenames might contain spaces"
This reverts commit 8f14b0ace5934c27261f388820f5c3c587c97fba.
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git.py3
1 files changed, 1 insertions, 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])