From mboxrd@z Thu Jan 1 00:00:00 1970 From: mail at eworm.de (Christian Hesse) Date: Thu, 20 Feb 2014 20:48:45 +0100 Subject: [PATCH 1/1] print download link for reference string length == 1 In-Reply-To: <20140220203359.78dddca0@leda.localdomain> References: <20140220203359.78dddca0@leda.localdomain> Message-ID: <1392925725-28455-1-git-send-email-mail@eworm.de> I have a number of repositories that start tagging with just '1' and count up. Actually references with sting length of one are skipped, this patch changes that. --- ui-refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-refs.c b/ui-refs.c index 147b665..e8e308e 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -105,7 +105,7 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref) const char *basename; int free_ref = 0; - if (!ref || strlen(ref) < 2) + if (!ref || strlen(ref) < 1) return; basename = cgit_repobasename(repo->url); -- 1.9.0