aboutsummaryrefslogtreecommitdiffstats
path: root/ui-refs.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-21 04:48:45 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-02-21 09:41:23 (JST)
commite6749644bc60865cb560a532b14fb3a007fb00ea (patch)
treef2dfab692ade584484cb10c10ec9f9328d56a123 /ui-refs.c
parent2e8e9af1d4161bfe1bfbf1e34b1631b7cc1c1b95 (diff)
downloadcgit-e6749644bc60865cb560a532b14fb3a007fb00ea.zip
cgit-e6749644bc60865cb560a532b14fb3a007fb00ea.tar.gz
print download link for reference string length == 1
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.
Diffstat (limited to 'ui-refs.c')
-rw-r--r--ui-refs.c2
1 files changed, 1 insertions, 1 deletions
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)
105 const char *basename; 105 const char *basename;
106 int free_ref = 0; 106 int free_ref = 0;
107 107
108 if (!ref || strlen(ref) < 2) 108 if (!ref || strlen(ref) < 1)
109 return; 109 return;
110 110
111 basename = cgit_repobasename(repo->url); 111 basename = cgit_repobasename(repo->url);