diff options
author | Lars Hjemli | 2006-12-16 13:43:01 +0100 |
---|---|---|
committer | Lars Hjemli | 2006-12-16 13:43:01 +0100 |
commit | 61245ad18545ab09b22e9fcce5e49d5d36bf8176 (patch) | |
tree | d20fb330a904abd0f15c68011eb15fe995eb0fe7 /shared.c | |
parent | 521dc7a4bf4af6115ffc3a94d447689bbaa22272 (diff) | |
download | cgit-61245ad18545ab09b22e9fcce5e49d5d36bf8176.tar.gz cgit-61245ad18545ab09b22e9fcce5e49d5d36bf8176.tar.bz2 cgit-61245ad18545ab09b22e9fcce5e49d5d36bf8176.zip |
Add cache-root option to /cgit/rc
Somehow, this option was forgotten when parsing the configfile.
Add it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -57,6 +57,8 @@ void cgit_global_config_cb(const char *name, const char *value) | |||
57 | cgit_virtual_root = xstrdup(value); | 57 | cgit_virtual_root = xstrdup(value); |
58 | else if (!strcmp(name, "nocache")) | 58 | else if (!strcmp(name, "nocache")) |
59 | cgit_nocache = atoi(value); | 59 | cgit_nocache = atoi(value); |
60 | else if (!strcmp(name, "cache-root")) | ||
61 | cgit_cache_root = xstrdup(value); | ||
60 | } | 62 | } |
61 | 63 | ||
62 | void cgit_repo_config_cb(const char *name, const char *value) | 64 | void cgit_repo_config_cb(const char *name, const char *value) |