about summary refs log tree commit diff
path: root/shared.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2010-08-21 15:08:01 +0200
committerLars Hjemli <hjemli@gmail.com>2010-08-22 13:35:47 +0200
commit515edb0da3b9156e07e269621d7474cdea82acaf (patch)
treee5fed5e83f29166c23216437386e10070e1d258d /shared.c
parentUse GIT-1.7.2.2 (diff)
downloadcgit-pink-515edb0da3b9156e07e269621d7474cdea82acaf.tar.gz
cgit-pink-515edb0da3b9156e07e269621d7474cdea82acaf.zip
Add support for "readme" option
The value of this option is used as the default value for repo.readme.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared.c b/shared.c
index b42c2a2..72ac140 100644
--- a/shared.c
+++ b/shared.c
@@ -62,7 +62,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
 	ret->enable_subject_links = ctx.cfg.enable_subject_links;
 	ret->max_stats = ctx.cfg.max_stats;
 	ret->module_link = ctx.cfg.module_link;
-	ret->readme = NULL;
+	ret->readme = ctx.cfg.readme;
 	ret->mtime = -1;
 	ret->about_filter = ctx.cfg.about_filter;
 	ret->commit_filter = ctx.cfg.commit_filter;