aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <github@adamspiers.org>2017-01-13 01:58:03 +0000
committerGitHub <noreply@github.com>2017-01-13 01:58:03 +0000
commit949576e988324e40f0f5114a061f80ffe4a28750 (patch)
tree90e595b79da7d0815eaeb77f0af2ca1e1464fb44
parent8e1545564aaebbf95401db74a2d421f6d442c731 (diff)
parent80901e26ebe929ac3ae99166519b81c591b8d935 (diff)
downloadgit-deps-949576e988324e40f0f5114a061f80ffe4a28750.tar.gz
Merge pull request #63 from jeremysalwen/patch-1
Apply dwm1945's patch
-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: