diff options
Diffstat (limited to 'ui-patch.c')
-rw-r--r-- | ui-patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, | |||
33 | "Bad object id: %s", new_rev); | 33 | "Bad object id: %s", new_rev); |
34 | return; | 34 | return; |
35 | } | 35 | } |
36 | commit = lookup_commit_reference(new_rev_oid.hash); | 36 | commit = lookup_commit_reference(&new_rev_oid); |
37 | if (!commit) { | 37 | if (!commit) { |
38 | cgit_print_error_page(404, "Not found", | 38 | cgit_print_error_page(404, "Not found", |
39 | "Bad commit reference: %s", new_rev); | 39 | "Bad commit reference: %s", new_rev); |
@@ -46,7 +46,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev, | |||
46 | "Bad object id: %s", old_rev); | 46 | "Bad object id: %s", old_rev); |
47 | return; | 47 | return; |
48 | } | 48 | } |
49 | if (!lookup_commit_reference(old_rev_oid.hash)) { | 49 | if (!lookup_commit_reference(&old_rev_oid)) { |
50 | cgit_print_error_page(404, "Not found", | 50 | cgit_print_error_page(404, "Not found", |
51 | "Bad commit reference: %s", old_rev); | 51 | "Bad commit reference: %s", old_rev); |
52 | return; | 52 | return; |