summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: