aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c6
1 files changed, 0 insertions, 6 deletions
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)
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;