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.
Αυτή η υποβολή περιλαμβάνεται σε:
γονέας
2e8e9af1d4
υποβολή
e6749644bc
@ -105,7 +105,7 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref)
|
|||||||
const char *basename;
|
const char *basename;
|
||||||
int free_ref = 0;
|
int free_ref = 0;
|
||||||
|
|
||||||
if (!ref || strlen(ref) < 2)
|
if (!ref || strlen(ref) < 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
basename = cgit_repobasename(repo->url);
|
basename = cgit_repobasename(repo->url);
|
||||||
|
Φόρτωση…
Αναφορά σε νέο ζήτημα
Block a user