X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/79c985e13c10b498c3ea62f4607c2e2a460c3b10..9dd67272ed57e8923510197eb5ac8d3f819fbb26:/cgit.c diff --git a/cgit.c b/cgit.c index 20f6e27..8c4517d 100644 --- a/cgit.c +++ b/cgit.c @@ -504,12 +504,6 @@ static void choose_readme(struct cgit_repo *repo) free(ref); continue; } - /* If there's only one item, we skip the possibly expensive - * selection process. */ - if (repo->readme.nr == 1) { - found = 1; - break; - } if (ref) { if (cgit_ref_path_exists(filename, ref, 1)) { found = 1;