]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-patch.c
Bump version
[cgit.git] / ui-patch.c
index 82f125b24d27e207373a39e05a764b65947bd1fb..5a964108e51e5f553536899cb6b79922e25e1288 100644 (file)
@@ -36,7 +36,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
                                "Bad object id: %s", new_rev);
                return;
        }
-       commit = lookup_commit_reference(&new_rev_oid);
+       commit = lookup_commit_reference(the_repository, &new_rev_oid);
        if (!commit) {
                cgit_print_error_page(404, "Not found",
                                "Bad commit reference: %s", new_rev);
@@ -49,7 +49,7 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
                                        "Bad object id: %s", old_rev);
                        return;
                }
-               if (!lookup_commit_reference(&old_rev_oid)) {
+               if (!lookup_commit_reference(the_repository, &old_rev_oid)) {
                        cgit_print_error_page(404, "Not found",
                                        "Bad commit reference: %s", old_rev);
                        return;