hooks: allow customizing where the hook directory is
[gitweb.git] / config.c
index 9ba40bc1b039b9b65425dc4fa1bd9c7f1fcb0868..9ef5fde785317c6292a5bb1b23f6b8dc819aafb1 100644 (file)
--- a/config.c
+++ b/config.c
@@ -717,6 +717,9 @@ static int git_default_core_config(const char *var, const char *value)
        if (!strcmp(var, "core.attributesfile"))
                return git_config_pathname(&git_attributes_file, var, value);
 
+       if (!strcmp(var, "core.hookspath"))
+               return git_config_pathname(&git_hooks_path, var, value);
+
        if (!strcmp(var, "core.bare")) {
                is_bare_repository_cfg = git_config_bool(var, value);
                return 0;