mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 09:34:43 +02:00
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.
This commit is contained in:
parent
2e8e9af1d4
commit
e6749644bc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue