summaryrefslogtreecommitdiffhomepage
path: root/gbp/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git.py')
-rw-r--r--gbp/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git.py b/gbp/git.py
index f72f866e..a8e95615 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -534,7 +534,7 @@ class GitRepository(object):
out, ret = self.__git_getoutput('ls-tree', args, cwd=path)
for line in out:
- mode, objtype, commit, name = line.split()
+ mode, objtype, commit, name = line[:-1].split(None, 3)
# A submodules is shown as "commit" object in ls-tree:
if objtype == "commit":
nextpath = os.path.sep.join([path, name])