summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-10-07 14:24:14 -0400
committerGitHub <noreply@github.com>2020-10-07 14:24:14 -0400
commite00e8d8ad391ded1316d9dade4d2542199141be6 (patch)
treeb80b6ef6b1c41f9ee8fe7cf4066f27c86cae5bde /modules/setting
parente0b7727804ab80f5f65166e85bb61308af90d4c1 (diff)
downloadgitea-e00e8d8ad391ded1316d9dade4d2542199141be6.tar.gz
gitea-e00e8d8ad391ded1316d9dade4d2542199141be6.zip
Disable Git Hooks by default (#13064)
* Disable Git Hooks by default Related #13058 * pass tests
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index dc7697bca7..9eba731651 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -740,7 +740,7 @@ func NewContext() {
ReverseProxyAuthEmail = sec.Key("REVERSE_PROXY_AUTHENTICATION_EMAIL").MustString("X-WEBAUTH-EMAIL")
MinPasswordLength = sec.Key("MIN_PASSWORD_LENGTH").MustInt(6)
ImportLocalPaths = sec.Key("IMPORT_LOCAL_PATHS").MustBool(false)
- DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(false)
+ DisableGitHooks = sec.Key("DISABLE_GIT_HOOKS").MustBool(true)
OnlyAllowPushIfGiteaEnvironmentSet = sec.Key("ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET").MustBool(true)
PasswordHashAlgo = sec.Key("PASSWORD_HASH_ALGO").MustString("argon2")
CSRFCookieHTTPOnly = sec.Key("CSRF_COOKIE_HTTP_ONLY").MustBool(true)