[PATCH 2/8] remote-bzr: fix for files with spaces
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 16, 2013, 08:36 UTC
- Message-ID
- <1368693407-21267-3-git-send-email-felipe.contreras@gmail.com>
- In-Reply-To
- <1368693407-21267-1-git-send-email-felipe.contreras@gmail.com>
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> --- contrib/remote-helpers/git-remote-bzr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 7cd9ed8..b849336 100755 --- a/contrib/remote-helpers/git-remote-bzr +++ b/contrib/remote-helpers/git-remote-bzr @@ -620,7 +620,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)
-- 1.8.3.rc2.542.g24820ba