aboutsummaryrefslogtreecommitdiff
path: root/modules/git/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/hooks.go')
-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 6a1e09a9..300a1005 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 (