Skip to content

Commit 0bad02a

Browse files
committed
fix
1 parent 57eb9d0 commit 0bad02a

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

modules/setting/security.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import (
1313
"code.gitea.io/gitea/modules/log"
1414
)
1515

16+
// Security settings
17+
1618
var (
17-
// Security settings
1819
InstallLock bool
1920
SecretKey string
2021
InternalToken string // internal access token
@@ -27,7 +28,7 @@ var (
2728
ReverseProxyTrustedProxies []string
2829
MinPasswordLength int
2930
ImportLocalPaths bool
30-
DisableGitHooks bool
31+
DisableGitHooks = true
3132
DisableWebhooks bool
3233
OnlyAllowPushIfGiteaEnvironmentSet bool
3334
PasswordComplexity []string

tests/mssql.ini.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ COLORIZE = true
9393
LEVEL = Debug
9494

9595
[security]
96-
DISABLE_GIT_HOOKS = false
9796
INSTALL_LOCK = true
9897
SECRET_KEY = 9pCviYTWSb
9998
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTU1NTE2MTh9.hhSVGOANkaKk3vfCd2jDOIww4pUk0xtg9JRde5UogyQ

tests/mysql.ini.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ COLORIZE = true
9494
LEVEL = Debug
9595

9696
[security]
97-
DISABLE_GIT_HOOKS = false
9897
INSTALL_LOCK = true
9998
SECRET_KEY = 9pCviYTWSb
10099
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTU1NTE2MTh9.hhSVGOANkaKk3vfCd2jDOIww4pUk0xtg9JRde5UogyQ

tests/pgsql.ini.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ COLORIZE = true
9494
LEVEL = Debug
9595

9696
[security]
97-
DISABLE_GIT_HOOKS = false
9897
INSTALL_LOCK = true
9998
SECRET_KEY = 9pCviYTWSb
10099
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTU1NTE2MTh9.hhSVGOANkaKk3vfCd2jDOIww4pUk0xtg9JRde5UogyQ

tests/sqlite.ini.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ COLORIZE = true
9393
LEVEL = Debug
9494

9595
[security]
96-
DISABLE_GIT_HOOKS = false
9796
INSTALL_LOCK = true
9897
SECRET_KEY = 9pCviYTWSb
9998
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTI3OTU5ODN9.OQkH5UmzID2XBdwQ9TAI6Jj2t1X-wElVTjbE7aoN4I8

0 commit comments

Comments
 (0)