X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/779631c6dc23c15bbbf45a7c7ab9fffb619037b7..09d24d7cd0b7e85633f2f43808b12871bb209d69:/ui-tag.c diff --git a/ui-tag.c b/ui-tag.c index 424bbcc..3b11226 100644 --- a/ui-tag.c +++ b/ui-tag.c @@ -6,6 +6,8 @@ * (see COPYING for full license text) */ +#define USE_THE_REPOSITORY_VARIABLE + #include "cgit.h" #include "ui-tag.h" #include "html.h" @@ -48,7 +50,7 @@ void cgit_print_tag(char *revname) revname = ctx.qry.head; strbuf_addf(&fullref, "refs/tags/%s", revname); - if (get_oid(fullref.buf, &oid)) { + if (repo_get_oid(the_repository, fullref.buf, &oid)) { cgit_print_error_page(404, "Not found", "Bad tag reference: %s", revname); goto cleanup;