neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit e6749644bc60865cb560a532b14fb3a007fb00ea
parent 2e8e9af1d4161bfe1bfbf1e34b1631b7cc1c1b95
Author: Christian Hesse <mail@eworm.de>
Date:   Thu, 20 Feb 2014 20:48:45 +0100

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:
Mui-refs.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);