diff options
author | Lars Hjemli | 2010-09-19 18:43:58 +0200 |
---|---|---|
committer | Lars Hjemli | 2010-09-19 18:43:58 +0200 |
commit | e76a1ea427792aaa331cdec70d7d4ff1fb3422e0 (patch) | |
tree | faeee0c46a2d470b29b46481f74070557e3fdb8d /scan-tree.c | |
parent | 857696dd3d85f7c12c718a46d82a2405e6a9919a (diff) | |
parent | 515edb0da3b9156e07e269621d7474cdea82acaf (diff) | |
download | cgit-e76a1ea427792aaa331cdec70d7d4ff1fb3422e0.tar.gz cgit-e76a1ea427792aaa331cdec70d7d4ff1fb3422e0.tar.bz2 cgit-e76a1ea427792aaa331cdec70d7d4ff1fb3422e0.zip |
Merge branch 'lh/readme'
Diffstat (limited to 'scan-tree.c')
-rw-r--r-- | scan-tree.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) | |||
110 | if (!stat(p, &st)) | 110 | if (!stat(p, &st)) |
111 | readfile(p, &repo->desc, &size); | 111 | readfile(p, &repo->desc, &size); |
112 | 112 | ||
113 | p = fmt("%s/README.html", path); | 113 | if (!repo->readme) { |
114 | if (!stat(p, &st)) | 114 | p = fmt("%s/README.html", path); |
115 | repo->readme = "README.html"; | 115 | if (!stat(p, &st)) |
116 | repo->readme = "README.html"; | ||
117 | } | ||
116 | 118 | ||
117 | p = fmt("%s/cgitrc", path); | 119 | p = fmt("%s/cgitrc", path); |
118 | if (!stat(p, &st)) { | 120 | if (!stat(p, &st)) { |