diff options
Diffstat (limited to 'ui-diff.c')
-rw-r--r-- | ui-diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -407,7 +407,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, | |||
407 | "Bad object name: %s", new_rev); | 407 | "Bad object name: %s", new_rev); |
408 | return; | 408 | return; |
409 | } | 409 | } |
410 | commit = lookup_commit_reference(new_rev_oid); | 410 | commit = lookup_commit_reference(the_repository, new_rev_oid); |
411 | if (!commit || parse_commit(commit)) { | 411 | if (!commit || parse_commit(commit)) { |
412 | cgit_print_error_page(404, "Not found", | 412 | cgit_print_error_page(404, "Not found", |
413 | "Bad commit: %s", oid_to_hex(new_rev_oid)); | 413 | "Bad commit: %s", oid_to_hex(new_rev_oid)); |
@@ -428,7 +428,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, | |||
428 | } | 428 | } |
429 | 429 | ||
430 | if (!is_null_oid(old_rev_oid)) { | 430 | if (!is_null_oid(old_rev_oid)) { |
431 | commit2 = lookup_commit_reference(old_rev_oid); | 431 | commit2 = lookup_commit_reference(the_repository, old_rev_oid); |
432 | if (!commit2 || parse_commit(commit2)) { | 432 | if (!commit2 || parse_commit(commit2)) { |
433 | cgit_print_error_page(404, "Not found", | 433 | cgit_print_error_page(404, "Not found", |
434 | "Bad commit: %s", oid_to_hex(old_rev_oid)); | 434 | "Bad commit: %s", oid_to_hex(old_rev_oid)); |