From 9ecde6568a9e39c942f4c5585ffa494c5df870e4 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 14 May 2007 23:09:49 +0200 Subject: Let makefile override the configfile location Pass CGIT_CONFIG from makefile during build, to enable stuff like make CGIT_CONFIG=/var/cgit/cgit.conf Noticed by Kristian Høgsberg Signed-off-by: Lars Hjemli --- cgit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index 1d7a83f..67ad103 100644 --- a/cgit.c +++ b/cgit.c @@ -243,7 +243,7 @@ int main(int argc, const char **argv) cgit_repolist.count = 0; cgit_repolist.repos = NULL; - cgit_read_config("/etc/cgitrc", cgit_global_config_cb); + cgit_read_config(CGIT_CONFIG, cgit_global_config_cb); if (getenv("QUERY_STRING")) cgit_querystring = xstrdup(getenv("QUERY_STRING")); cgit_parse_args(argc, argv); -- cgit v1.2.3-70-g09d2