about summary refs log tree commit diff stats
path: root/ui-patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-patch.c')
-rw-r--r--ui-patch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-patch.c b/ui-patch.c index 82f125b..5a96410 100644 --- a/ui-patch.c +++ b/ui-patch.c
@@ -36,7 +36,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
36 "Bad object id: %s", new_rev); 36 "Bad object id: %s", new_rev);
37 return; 37 return;
38 } 38 }
39 commit = lookup_commit_reference(&new_rev_oid); 39 commit = lookup_commit_reference(the_repository, &new_rev_oid);
40 if (!commit) { 40 if (!commit) {
41 cgit_print_error_page(404, "Not found", 41 cgit_print_error_page(404, "Not found",
42 "Bad commit reference: %s", new_rev); 42 "Bad commit reference: %s", new_rev);
@@ -49,7 +49,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
49 "Bad object id: %s", old_rev); 49 "Bad object id: %s", old_rev);
50 return; 50 return;
51 } 51 }
52 if (!lookup_commit_reference(&old_rev_oid)) { 52 if (!lookup_commit_reference(the_repository, &old_rev_oid)) {
53 cgit_print_error_page(404, "Not found", 53 cgit_print_error_page(404, "Not found",
54 "Bad commit reference: %s", old_rev); 54 "Bad commit reference: %s", old_rev);
55 return; 55 return;