X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/9984e7ab49c59e49a0d7e62c3435e7133f7a53ec..5b1f42ffeec7e315fc4fcff5145e5b0adca30715:/ui-refs.c diff --git a/ui-refs.c b/ui-refs.c index 75f2789..7b95e8b 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -97,10 +97,7 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref) struct strbuf filename = STRBUF_INIT; size_t prefixlen; - if (!ref || strlen(ref) < 1) - return; - - basename = cgit_repobasename(repo->url); + basename = cgit_snapshot_prefix(repo); if (starts_with(ref, basename)) strbuf_addstr(&filename, ref); else