From e76a1ea427792aaa331cdec70d7d4ff1fb3422e0 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 19 Sep 2010 16:43:58 +0000 Subject: Merge branch 'lh/readme' --- (limited to 'scan-tree.c') diff --git a/scan-tree.c b/scan-tree.c index e987824..780d405 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -110,9 +110,11 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) if (!stat(p, &st)) readfile(p, &repo->desc, &size); - p = fmt("%s/README.html", path); - if (!stat(p, &st)) - repo->readme = "README.html"; + if (!repo->readme) { + p = fmt("%s/README.html", path); + if (!stat(p, &st)) + repo->readme = "README.html"; + } p = fmt("%s/cgitrc", path); if (!stat(p, &st)) { -- cgit v0.9.0.2