Revert "gbp: restrict splitting output of ls-tree to 3, since filenames might contain...
authorGuido Günther <agx@sigxcpu.org>
Wed, 6 Apr 2011 18:27:29 +0000 (20:27 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 6 Apr 2011 18:34:58 +0000 (20:34 +0200)
This reverts commit 8f14b0ace5934c27261f388820f5c3c587c97fba.

gbp/git.py

index 40dc7f7..96c2255 100644 (file)
@@ -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])