]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Always check if README exists in choose_readme()
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index 20f6e279e3be60653d70a3e0966064afcd8c6480..8c4517d8e70554e02ac3cdaf8a246f2dad9dbfe0 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -504,12 +504,6 @@ static void choose_readme(struct cgit_repo *repo)
                        free(ref);
                        continue;
                }
                        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;
                if (ref) {
                        if (cgit_ref_path_exists(filename, ref, 1)) {
                                found = 1;