X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b431282c91deea24916578395d88084261410968..79c985e13c10b498c3ea62f4607c2e2a460c3b10:/ui-refs.c diff --git a/ui-refs.c b/ui-refs.c index 0da063f..7e58737 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -101,7 +101,7 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref) return; basename = cgit_repobasename(repo->url); - if (prefixcmp(ref, basename) != 0) { + if (!starts_with(ref, basename)) { if ((ref[0] == 'v' || ref[0] == 'V') && isdigit(ref[1])) ref++; if (isdigit(ref[0])) { @@ -239,9 +239,9 @@ void cgit_print_refs() html("