From 80901e26ebe929ac3ae99166519b81c591b8d935 Mon Sep 17 00:00:00 2001 From: Jeremy Salwen Date: Thu, 12 Jan 2017 16:55:17 -0800 Subject: [PATCH] Apply dwm1945's patch Apply dwm1945's patch from the issue about KeyError. --- git-deps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-deps.py b/git-deps.py index ae5d796..216bb9e 100755 --- a/git-deps.py +++ b/git-deps.py @@ -549,6 +549,8 @@ def blame_hunk(self, dependent, parent, path, hunk): self.logger.debug(diff_format % ('--------', '-----', '', hunk_header)) line_num = hunk.old_start for line in hunk.lines: + if "\n\\ No newline at end of file" == line.content.rstrip(): + break if line.origin == '+': rev = ln = '' else: