about summary refs log tree commit diff
path: root/shared.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2006-12-16 13:43:01 +0100
committerLars Hjemli <hjemli@gmail.com>2006-12-16 13:43:01 +0100
commit61245ad18545ab09b22e9fcce5e49d5d36bf8176 (patch)
treed20fb330a904abd0f15c68011eb15fe995eb0fe7 /shared.c
parentAdd argument parsing + switch for uncached operation (diff)
downloadcgit-pink-61245ad18545ab09b22e9fcce5e49d5d36bf8176.tar.gz
cgit-pink-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 '')
-rw-r--r--shared.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 7149597..4574120 100644
--- a/shared.c
+++ b/shared.c
@@ -57,6 +57,8 @@ void cgit_global_config_cb(const char *name, const char *value)
 		cgit_virtual_root = xstrdup(value);
 	else if (!strcmp(name, "nocache"))
 		cgit_nocache = atoi(value);
+	else if (!strcmp(name, "cache-root"))
+		cgit_cache_root = xstrdup(value);
 }
 
 void cgit_repo_config_cb(const char *name, const char *value)