aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 4be89c8..84eb17d 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -110,7 +110,7 @@ static void print_object(const struct object_id *oid, const char *path, const ch
110 htmlf("blob: %s (", oid_to_hex(oid)); 110 htmlf("blob: %s (", oid_to_hex(oid));
111 cgit_plain_link("plain", NULL, NULL, ctx.qry.head, 111 cgit_plain_link("plain", NULL, NULL, ctx.qry.head,
112 rev, path); 112 rev, path);
113 if (ctx.cfg.enable_blame) { 113 if (ctx.repo->enable_blame) {
114 html(") ("); 114 html(") (");
115 cgit_blame_link("blame", NULL, NULL, ctx.qry.head, 115 cgit_blame_link("blame", NULL, NULL, ctx.qry.head,
116 rev, path); 116 rev, path);
@@ -251,7 +251,7 @@ static int ls_item(const struct object_id *oid, struct strbuf *base,
251 if (!S_ISGITLINK(mode)) 251 if (!S_ISGITLINK(mode))
252 cgit_plain_link("plain", NULL, "button", ctx.qry.head, 252 cgit_plain_link("plain", NULL, "button", ctx.qry.head,
253 walk_tree_ctx->curr_rev, fullpath.buf); 253 walk_tree_ctx->curr_rev, fullpath.buf);
254 if (!S_ISDIR(mode) && ctx.cfg.enable_blame) 254 if (!S_ISDIR(mode) && ctx.repo->enable_blame)
255 cgit_blame_link("blame", NULL, "button", ctx.qry.head, 255 cgit_blame_link("blame", NULL, "button", ctx.qry.head,
256 walk_tree_ctx->curr_rev, fullpath.buf); 256 walk_tree_ctx->curr_rev, fullpath.buf);
257 html("</td></tr>\n"); 257 html("</td></tr>\n");