about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui-diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-diff.c b/ui-diff.c
index 3c4d52a..5c864d9 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -106,6 +106,8 @@ void cgit_print_diff(const char *head, const char *old_hex, const char *new_hex,
 			cgit_diff_commit(commit, filepair_cb);
 		else
 			cgit_print_error(fmt("Bad commit: %s", head));
+		html("</td></tr>");
+		html("</table>");
 		return;
 	}