remote-bzr: fix for files with spaces
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 25 May 2013 02:24:20 +0000 (21:24 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 14:43:18 +0000 (07:43 -0700)
Set the maximum number of splits to make when dividing the diff stat
lines based on space characters.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-bzr
index 8a4df51fadc23bac7fb86239741c09c15e1a7dfd..35664c65236c45e15f525f9c65d9ab9d866e3dd8 100755 (executable)
@@ -621,7 +621,7 @@ def parse_commit(parser):
             mark = int(mark_ref[1:])
             f = { 'mode' : m, 'mark' : mark }
         elif parser.check('D'):
-            t, path = line.split(' ')
+            t, path = line.split(' ', 1)
             f = { 'deleted' : True }
         else:
             die('Unknown file command: %s' % line)