summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-02-15 09:12:17 +0100
committerStef Walter <stefw@gnome.org>2013-02-15 09:12:17 +0100
commitc202bdf3cc7433c3ff8264f151015296fab1fc9d (patch)
tree6ce85ea7174550a27b8eb09194d85d99b48deabe
parentf1ee883b0d17b39acdb11e6cb45a8c2d73feb789 (diff)
Handle patches that have the git 'No newline' warning
-rwxr-xr-xgit-coverage2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-coverage b/git-coverage
index a1ee260..f14f744 100755
--- a/git-coverage
+++ b/git-coverage
@@ -181,6 +181,8 @@ class Hunk:
hunk.lines.append(Line(0, offset, hunk_line))
mod_size += 1
offset += 1
+ elif hunk_line.startswith("\\"):
+ pass # No newline at end of file
else:
raise BadPatch("Unknown line type: %s" % hunk_line)
if hunk is not None: