diff options
author | Stef Walter <stefw@gnome.org> | 2013-02-15 09:12:17 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-02-15 09:12:17 +0100 |
commit | c202bdf3cc7433c3ff8264f151015296fab1fc9d (patch) | |
tree | 6ce85ea7174550a27b8eb09194d85d99b48deabe | |
parent | f1ee883b0d17b39acdb11e6cb45a8c2d73feb789 (diff) |
Handle patches that have the git 'No newline' warning
-rwxr-xr-x | git-coverage | 2 |
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: |