]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tag.c
git: update to v2.46.0
[ps-cgit] / ui-tag.c
index 424bbccd5f316965c8eaf9aaf80af9eebdbca683..3b112264b57d2ac17ba9ca8b539ea5d7597b8c1d 100644 (file)
--- 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;