aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-04-10 17:12:25 +0200
committerGuido Günther <agx@sigxcpu.org>2011-04-10 17:22:17 +0200
commitdc395964ad9c1784ddc75d889b71aa0e9c138208 (patch)
tree8540eb08a9119dd1721272838ae0b974789c78e6 /gbp
parentb203817bc6ba58fac97b6be632fc63f810167b17 (diff)
gbp: Handle whitespace in submodule names
Closes: #622103
Diffstat (limited to 'gbp')
-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])