From 8e84c6de35db45b3b4865b8856fc3c8a5479a341 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:02:06 -0700 Subject: Spell the signature suffix once for both files --- source/ui-shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 1d09c26..5f5dcca 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1808,7 +1808,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, co html(""); snapshot_link(filename.buf, NULL, NULL, NULL, NULL, filename.buf); if (cgit_snapshot_get_sig(ref, f)) { - strbuf_addstr(&filename, ".asc"); + strbuf_addstr(&filename, SIG_SUFFIX); html(" ("); snapshot_link("sig", NULL, NULL, NULL, NULL, filename.buf); html(")"); @@ -1820,7 +1820,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref, co // the plain tar it expands to, which is the first // format in the table. strbuf_setlen(&filename, filename.len - strlen(f->suffix)); - strbuf_addstr(&filename, ".tar.asc"); + strbuf_addstr(&filename, ".tar" SIG_SUFFIX); html(" ("); snapshot_link("sig", NULL, NULL, NULL, NULL, filename.buf); html(")"); -- cgit