aboutsummaryrefslogtreecommitdiff
path: root/scan-tree.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'scan-tree.c')
-rw-r--r--scan-tree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/scan-tree.c b/scan-tree.c
index 780d405..e987824 100644
--- a/scan-tree.c
+++ b/scan-tree.c
@@ -110,11 +110,9 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
if (!stat(p, &st))
readfile(p, &repo->desc, &size);
- if (!repo->readme) {
- p = fmt("%s/README.html", path);
- if (!stat(p, &st))
- repo->readme = "README.html";
- }
+ p = fmt("%s/README.html", path);
+ if (!stat(p, &st))
+ repo->readme = "README.html";
p = fmt("%s/cgitrc", path);
if (!stat(p, &st)) {