summaryrefslogtreecommitdiff
path: root/lib/git/diff.py
diff options
context:
space:
mode:
authorRick Copeland <rcopeland@geek.net>2010-05-07 15:18:19 -0400
committerSebastian Thiel <byronimo@gmail.com>2010-05-10 22:16:10 +0200
commitde5bc8f7076c5736ef1efa57345564fbc563bd19 (patch)
treefa7df33ffa4399fbf6b79b35916b2acafe3903e7 /lib/git/diff.py
parentc083f3d0b853e723d0d4b00ff2f1ec5f65f05cba (diff)
downloadgitpython-de5bc8f7076c5736ef1efa57345564fbc563bd19.tar.gz
Handle filenames with embedded spaces when generating diffs
Diffstat (limited to 'lib/git/diff.py')
-rw-r--r--lib/git/diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/diff.py b/lib/git/diff.py
index c7c54bdf..0dd4ed6e 100644
--- a/lib/git/diff.py
+++ b/lib/git/diff.py
@@ -342,7 +342,7 @@ class Diff(object):
if not line.startswith(":"):
continue
# END its not a valid diff line
- old_mode, new_mode, a_blob_id, b_blob_id, change_type, path = line[1:].split()
+ old_mode, new_mode, a_blob_id, b_blob_id, change_type, path = line[1:].split(None, 5)
a_path = path
b_path = path
deleted_file = False