diff options
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -504,12 +504,6 @@ static void choose_readme(struct cgit_repo *repo) | |||
504 | free(ref); | 504 | free(ref); |
505 | continue; | 505 | continue; |
506 | } | 506 | } |
507 | /* If there's only one item, we skip the possibly expensive | ||
508 | * selection process. */ | ||
509 | if (repo->readme.nr == 1) { | ||
510 | found = 1; | ||
511 | break; | ||
512 | } | ||
513 | if (ref) { | 507 | if (ref) { |
514 | if (cgit_ref_path_exists(filename, ref, 1)) { | 508 | if (cgit_ref_path_exists(filename, ref, 1)) { |
515 | found = 1; | 509 | found = 1; |