summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2017-09-12 05:25:42 -0400
committerLauris BH <lauris@nix.lv>2017-09-12 12:25:42 +0300
commit9bdbfbf6f3289f4df0df5aae9998a08483f22218 (patch)
tree5ae5d89fbb745876517fba4abb2a0c007a3654de /modules/templates/helper.go
parent3fecf94086be1b5f2bddd48cebc0e1ca4702de5c (diff)
downloadgitea-9bdbfbf6f3289f4df0df5aae9998a08483f22218.tar.gz
gitea-9bdbfbf6f3289f4df0df5aae9998a08483f22218.zip
Disable custom Git Hooks globally via configuration file (#2450)
* Create option to disable githooks globally via configuration file * Update comment in app.ini to align with @ethantkoenig's suggestion Signed-off-by: Matti Ranta <matti@mdranta.net>
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 821ff6c9c7..5ac0f6ee54 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -155,6 +155,9 @@ func NewFuncMap() []template.FuncMap {
}
return out.String()
},
+ "DisableGitHooks": func() bool {
+ return setting.DisableGitHooks
+ },
}}
}