Author: Christian Hesse <mail@eworm.de>
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.
ui-refs.c | 2 +-
diff --git a/ui-refs.c b/ui-refs.c index 147b66563382fb8c7140a1243f423610afa25281..e8e308e58d5848c721febefdf45326f76e31ff7e 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -105,7 +105,7 @@ struct strbuf filename = STRBUF_INIT; const char *basename; int free_ref = 0; - if (!ref || strlen(ref) < 2) + if (!ref || strlen(ref) < 1) return; basename = cgit_repobasename(repo->url);