cgit

commit 61245ad18545ab09b22e9fcce5e49d5d36bf8176

Author: Lars Hjemli <hjemli@gmail.com>

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>

 shared.c | 2 ++


diff --git a/shared.c b/shared.c
index 714959758e676970ece65122d7ff7786a601c50e..4574120cafa5c6900741dc0fbe83325d3f89eb72 100644
--- a/shared.c
+++ b/shared.c
@@ -57,6 +57,8 @@ 	else if (!strcmp(name, "virtual-root"))
 		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)