summaryrefslogtreecommitdiffabout
path: root/cgit.c
authorLars Hjemli <hjemli@gmail.com>2007-05-14 21:09:49 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-14 21:09:49 (UTC)
commit9ecde6568a9e39c942f4c5585ffa494c5df870e4 (patch) (side-by-side diff)
tree52038a9c553102b13741cecd546435b03917374a /cgit.c
parent5b94c96a83f19a0175a8e1699d71080965793cc2 (diff)
downloadcgit-9ecde6568a9e39c942f4c5585ffa494c5df870e4.zip
cgit-9ecde6568a9e39c942f4c5585ffa494c5df870e4.tar.gz
cgit-9ecde6568a9e39c942f4c5585ffa494c5df870e4.tar.bz2
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 <krh@bitplanet.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c') (more/less context) (show whitespace changes)
-rw-r--r--cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index 1d7a83f..67ad103 100644
--- a/cgit.c
+++ b/cgit.c
@@ -242,9 +242,9 @@ int main(int argc, const char **argv)
cgit_repolist.length = 0;
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_parse_query(cgit_querystring, cgit_querystring_cb);