X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c712d5ac434b9ee8cb4e63a173a2538e1878637f..c4fbb99cee30fa295e240b429b2dc7e8ad83d535:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index 8a786e0..a63dcb0 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -977,8 +977,6 @@ static void print_header(void) } else { if (ctx.cfg.root_desc) html_txt(ctx.cfg.root_desc); - else if (ctx.cfg.index_info) - html_include(ctx.cfg.index_info); } html("\n"); } @@ -1127,7 +1125,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, prefixlen = filename.len; for (f = cgit_snapshot_formats; f->suffix; f++) { - if (!(repo->snapshots & f->bit)) + if (!(repo->snapshots & cgit_snapshot_format_bit(f))) continue; strbuf_setlen(&filename, prefixlen); strbuf_addstr(&filename, f->suffix);