]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-patch.c
ui-blame: add blame UI
[ps-cgit] / ui-patch.c
index 047e2f9ffdf58c877673be2ac34d92ad2d61d4f3..8007a1181224b8360c85d1553c5045263d12acba 100644 (file)
@@ -33,7 +33,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.hash);
+       commit = lookup_commit_reference(&new_rev_oid);
        if (!commit) {
                cgit_print_error_page(404, "Not found",
                                "Bad commit reference: %s", new_rev);
@@ -46,7 +46,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.hash)) {
+               if (!lookup_commit_reference(&old_rev_oid)) {
                        cgit_print_error_page(404, "Not found",
                                        "Bad commit reference: %s", old_rev);
                        return;
@@ -92,6 +92,4 @@ void cgit_print_patch(const char *new_rev, const char *old_rev,
                log_tree_commit(&rev, commit);
                printf("-- \ncgit %s\n\n", cgit_version);
        }
-
-       fflush(stdout);
 }