Unidiff1 files changed, 6 insertions, 2 deletions
|
diff --git a/ui-diff.c b/ui-diff.c index a7bc667..d21541b 100644 --- a/ ui-diff.c+++ b/ ui-diff.c |
|
@@ -347,4 +347,6 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, const char *prefi |
347 | commit = lookup_commit_reference(new_rev_sha1); |
347 | commit = lookup_commit_reference(new_rev_sha1); |
348 | if (!commit || parse_commit(commit)) |
348 | if (!commit || parse_commit(commit)) { |
349 | cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(new_rev_sha1))); |
349 | cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(new_rev_sha1))); |
| |
350 | return; |
| |
351 | } |
350 | |
352 | |
@@ -364,4 +366,6 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, const char *prefi |
364 | commit2 = lookup_commit_reference(old_rev_sha1); |
366 | commit2 = lookup_commit_reference(old_rev_sha1); |
365 | if (!commit2 || parse_commit(commit2)) |
367 | if (!commit2 || parse_commit(commit2)) { |
366 | cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(old_rev_sha1))); |
368 | cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(old_rev_sha1))); |
| |
369 | return; |
| |
370 | } |
367 | } |
371 | } |
|