summaryrefslogtreecommitdiff
path: root/lib/git/diff.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-05-25 20:11:43 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-05-25 20:11:43 +0200
commit1019d4cf68d1acdbb4d6c1abb7e71ac9c0f581af (patch)
treedb7d88fc1be70144135c160971d853aa2b8ff6bb /lib/git/diff.py
parent600fcbc1a2d723f8d51e5f5ab6d9e4c389010e1c (diff)
downloadgitpython-1019d4cf68d1acdbb4d6c1abb7e71ac9c0f581af.tar.gz
diff: by limiting the splitcount to 5, a subtle bug was introduced as the newline at the end of the split line was not split away automatically. Added test for this, and the trivial fix0.2.0-beta1
Wow, at least two people reviewd the code, but it slipped through anyway :)
Diffstat (limited to 'lib/git/diff.py')
-rw-r--r--lib/git/diff.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/git/diff.py b/lib/git/diff.py
index 0dd4ed6e..9df0c499 100644
--- a/lib/git/diff.py
+++ b/lib/git/diff.py
@@ -343,6 +343,7 @@ class Diff(object):
continue
# END its not a valid diff line
old_mode, new_mode, a_blob_id, b_blob_id, change_type, path = line[1:].split(None, 5)
+ path = path.strip()
a_path = path
b_path = path
deleted_file = False