diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-04-10 17:12:25 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-04-10 17:22:17 +0200 |
commit | dc395964ad9c1784ddc75d889b71aa0e9c138208 (patch) | |
tree | 8540eb08a9119dd1721272838ae0b974789c78e6 /gbp | |
parent | b203817bc6ba58fac97b6be632fc63f810167b17 (diff) |
gbp: Handle whitespace in submodule names
Closes: #622103
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |