summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-06 17:50:00 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-06 17:50:00 -0400
commit64c68220d203cb07be001184cde4b35d4b503344 (patch)
tree1355846382ff21a2b1a3de606da3d9979a479dc8 /modules/setting
parent91e5c24a314170490139d661a921d94b8ab0555b (diff)
downloadgitea-64c68220d203cb07be001184cde4b35d4b503344.tar.gz
gitea-64c68220d203cb07be001184cde4b35d4b503344.zip
Fix #264
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 67e48108d9..b8fc4dec2e 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -275,6 +275,7 @@ var Service struct {
LdapAuth bool
ActiveCodeLives int
ResetPwdCodeLives int
+ EnableGitHooks bool
}
func newService() {
@@ -284,6 +285,7 @@ func newService() {
Service.RequireSignInView = Cfg.MustBool("service", "REQUIRE_SIGNIN_VIEW")
Service.EnableCacheAvatar = Cfg.MustBool("service", "ENABLE_CACHE_AVATAR")
Service.EnableReverseProxyAuth = Cfg.MustBool("service", "ENABLE_REVERSE_PROXY_AUTHENTICATION")
+ Service.EnableGitHooks = Cfg.MustBool("service", "ENABLE_GIT_HOOKS")
}
var logLevels = map[string]string{