From 56c66ee486b4b8d544201662de62a23f36e6a069 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 24 Nov 2015 16:30:47 -0500 Subject: #2008 more supported git hooks --- modules/git/hooks.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/git') 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 ( -- cgit v1.2.3