diff options
author | Lars Hjemli | 2007-05-14 23:09:49 +0200 |
---|---|---|
committer | Lars Hjemli | 2007-05-14 23:09:49 +0200 |
commit | 9ecde6568a9e39c942f4c5585ffa494c5df870e4 (patch) | |
tree | 52038a9c553102b13741cecd546435b03917374a /cgit.c | |
parent | 5b94c96a83f19a0175a8e1699d71080965793cc2 (diff) | |
download | cgit-9ecde6568a9e39c942f4c5585ffa494c5df870e4.tar.gz cgit-9ecde6568a9e39c942f4c5585ffa494c5df870e4.tar.bz2 cgit-9ecde6568a9e39c942f4c5585ffa494c5df870e4.zip |
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')
-rw-r--r-- | cgit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -243,7 +243,7 @@ int main(int argc, const char **argv) | |||
243 | cgit_repolist.count = 0; | 243 | cgit_repolist.count = 0; |
244 | cgit_repolist.repos = NULL; | 244 | cgit_repolist.repos = NULL; |
245 | 245 | ||
246 | cgit_read_config("/etc/cgitrc", cgit_global_config_cb); | 246 | cgit_read_config(CGIT_CONFIG, cgit_global_config_cb); |
247 | if (getenv("QUERY_STRING")) | 247 | if (getenv("QUERY_STRING")) |
248 | cgit_querystring = xstrdup(getenv("QUERY_STRING")); | 248 | cgit_querystring = xstrdup(getenv("QUERY_STRING")); |
249 | cgit_parse_args(argc, argv); | 249 | cgit_parse_args(argc, argv); |