]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
git: update to v2.45.2
[ps-cgit] / ui-commit.c
index 5e885444c15a55af7634940abf88856dda2f3527..30672d0130a03739fb6f81ff1f079009664c7a94 100644 (file)
@@ -26,7 +26,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        if (!hex)
                hex = ctx.qry.head;
 
        if (!hex)
                hex = ctx.qry.head;
 
-       if (get_oid(hex, &oid)) {
+       if (repo_get_oid(the_repository, hex, &oid)) {
                cgit_print_error_page(400, "Bad request",
                                "Bad object id: %s", hex);
                return;
                cgit_print_error_page(400, "Bad request",
                                "Bad object id: %s", hex);
                return;
@@ -39,7 +39,7 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
        }
        info = cgit_parse_commit(commit);
 
-       format_display_notes(&oid, &notes, PAGE_ENCODING, 0);
+       format_display_notes(&oid, &notes, PAGE_ENCODING, 1);
 
        load_ref_decorations(NULL, DECORATE_FULL_REFS);
 
 
        load_ref_decorations(NULL, DECORATE_FULL_REFS);