]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
git: update to v2.46.0
[ps-cgit] / ui-log.c
index 50d479d87343dc81ecb7d02a22696b19037380db..ee2a60765103ce8c21c6c98c356092aa9d624962 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -6,6 +6,8 @@
  *   (see COPYING for full license text)
  */
 
  *   (see COPYING for full license text)
  */
 
+#define USE_THE_REPOSITORY_VARIABLE
+
 #include "cgit.h"
 #include "ui-log.h"
 #include "html.h"
 #include "cgit.h"
 #include "ui-log.h"
 #include "html.h"
@@ -80,7 +82,8 @@ void show_commit_decorations(struct commit *commit)
                                ctx.qry.showmsg, 0);
                        break;
                case DECORATION_REF_TAG:
                                ctx.qry.showmsg, 0);
                        break;
                case DECORATION_REF_TAG:
-                       if (!read_ref(deco->name, &oid_tag) && !peel_iterated_oid(&oid_tag, &peeled))
+                       if (!refs_read_ref(get_main_ref_store(the_repository), deco->name, &oid_tag) &&
+                           !peel_iterated_oid(the_repository, &oid_tag, &peeled))
                                is_annotated = !oideq(&oid_tag, &peeled);
                        cgit_tag_link(buf, NULL, is_annotated ? "tag-annotated-deco" : "tag-deco", buf);
                        break;
                                is_annotated = !oideq(&oid_tag, &peeled);
                        cgit_tag_link(buf, NULL, is_annotated ? "tag-annotated-deco" : "tag-deco", buf);
                        break;