summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 09:21:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 09:21:27 +0000
commit9aa26a8f9d0ef8bd948b1d22be8fd8ad0a870627 (patch)
treed76df30628d9e87be87c27fc525dfd207c60ed52 /config.c
parentAdding debian version 1:2.45.1-1. (diff)
downloadgit-9aa26a8f9d0ef8bd948b1d22be8fd8ad0a870627.tar.xz
git-9aa26a8f9d0ef8bd948b1d22be8fd8ad0a870627.zip
Merging upstream version 1:2.45.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--config.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/config.c b/config.c
index 77a0fd2..ae3652b 100644
--- a/config.c
+++ b/config.c
@@ -1416,19 +1416,8 @@ 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")) {
- if (ctx->kvi && ctx->kvi->scope == CONFIG_SCOPE_LOCAL &&
- git_env_bool("GIT_CLONE_PROTECTION_ACTIVE", 0))
- die(_("active `core.hooksPath` found in the local "
- "repository config:\n\t%s\nFor security "
- "reasons, this is disallowed by default.\nIf "
- "this is intentional and the hook should "
- "actually be run, please\nrun the command "
- "again with "
- "`GIT_CLONE_PROTECTION_ACTIVE=false`"),
- 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);