X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90..b2c939af4bbd24882fcd28aa6b75319ca61c7c5b:/ui-commit.c diff --git a/ui-commit.c b/ui-commit.c index 5e88544..30672d0 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -26,7 +26,7 @@ void cgit_print_commit(char *hex, const char *prefix) 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; @@ -39,7 +39,7 @@ void cgit_print_commit(char *hex, const char *prefix) } info = cgit_parse_commit(commit); - format_display_notes(&oid, ¬es, PAGE_ENCODING, 0); + format_display_notes(&oid, ¬es, PAGE_ENCODING, 1); load_ref_decorations(NULL, DECORATE_FULL_REFS);