summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-24 16:30:47 -0500
committerUnknwon <u@gogs.io>2015-11-24 16:30:47 -0500
commit56c66ee486b4b8d544201662de62a23f36e6a069 (patch)
tree74f3032cc8b3a55596575707e581d56990122b22 /modules
parent21ad4bf0fe461b7bf04384dcc09e62f7e52c9803 (diff)
downloadgitea-56c66ee486b4b8d544201662de62a23f36e6a069.tar.gz
gitea-56c66ee486b4b8d544201662de62a23f36e6a069.zip
#2008 more supported git hooks
Diffstat (limited to 'modules')
-rw-r--r--modules/git/hooks.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/git/hooks.go b/modules/git/hooks.go
index 6a1e09a9be..300a100532 100644
--- a/modules/git/hooks.go
+++ b/modules/git/hooks.go
@@ -16,15 +16,23 @@ import (
// hookNames is a list of Git hooks' name that are supported.
var hookNames = []string{
- "pre-applypatch",
"applypatch-msg",
+ "pre-applypatch",
+ "post-applypatch",
+ "pre-commit",
"prepare-commit-msg",
"commit-msg",
- "pre-commit",
- "pre-rebase",
"post-commit",
+ "pre-rebase",
+ "post-checkout",
+ "post-merge",
+ "pre-push",
+ // "update",
"post-receive",
"post-update",
+ "push-to-checkout",
+ "pre-auto-gc",
+ "post-rewrite",
}
var (