From 1019d4cf68d1acdbb4d6c1abb7e71ac9c0f581af Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 25 May 2010 20:11:43 +0200 Subject: 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 fix Wow, at least two people reviewd the code, but it slipped through anyway :) --- lib/git/diff.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/git/diff.py') 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 -- cgit v1.2.1