]> git.cameronkatri.com Git - cgit.git/commitdiff
print download link for reference string length == 1
authorChristian Hesse <mail@eworm.de>
Thu, 20 Feb 2014 19:48:45 +0000 (20:48 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 21 Feb 2014 00:41:23 +0000 (01:41 +0100)
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

index 147b66563382fb8c7140a1243f423610afa25281..e8e308e58d5848c721febefdf45326f76e31ff7e 100644 (file)
--- 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;
 
        const char *basename;
        int free_ref = 0;
 
-       if (!ref || strlen(ref) < 2)
+       if (!ref || strlen(ref) < 1)
                return;
 
        basename = cgit_repobasename(repo->url);
                return;
 
        basename = cgit_repobasename(repo->url);