commit | e6749644bc60865cb560a532b14fb3a007fb00ea | [log] [tgz] |
---|---|---|
author | Christian Hesse <mail@eworm.de> | Thu Feb 20 20:48:45 2014 +0100 |
committer | Jason A. Donenfeld <Jason@zx2c4.com> | Fri Feb 21 01:41:23 2014 +0100 |
tree | f2dfab692ade584484cb10c10ec9f9328d56a123 | |
parent | 2e8e9af1d4161bfe1bfbf1e34b1631b7cc1c1b95 [diff] [blame] |
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.
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 @@ const char *basename; int free_ref = 0; - if (!ref || strlen(ref) < 2) + if (!ref || strlen(ref) < 1) return; basename = cgit_repobasename(repo->url);