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:
Christian Hesse 2014-02-20 20:48:45 +01:00 committed by Jason A. Donenfeld
부모 2e8e9af1d4
커밋 e6749644bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -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);