aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-deps.py2
1 files changed, 2 insertions, 0 deletions
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 @@ class DependencyDetector(object):
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: