diff options
Diffstat (limited to 'git/diff.py')
-rw-r--r-- | git/diff.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git/diff.py b/git/diff.py index 48b0e0d6..c4424592 100644 --- a/git/diff.py +++ b/git/diff.py @@ -574,6 +574,9 @@ class Diff(object): _, _, lines = lines.partition(":") for line in lines.split("\x00:"): + if not line: + # The line data is empty, skip + continue meta, _, path = line.partition("\x00") path = path.rstrip("\x00") a_blob_id: Optional[str] |