X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e32f8416e87503aef2cd2698e15f3dc5e8c40d7e..HEAD:/ui-commit.c?ds=sidebyside diff --git a/ui-commit.c b/ui-commit.c index 0787237..972e9bc 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -6,6 +6,8 @@ * (see COPYING for full license text) */ +#define USE_THE_REPOSITORY_VARIABLE + #include "cgit.h" #include "ui-commit.h" #include "html.h" @@ -26,7 +28,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;