1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

#2008 more supported git hooks

This commit is contained in:
Unknwon 2015-11-24 16:30:47 -05:00
parent 21ad4bf0fe
commit 56c66ee486
3 changed files with 13 additions and 5 deletions

View file

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.7.21.1123 Beta" const APP_VER = "0.7.21.1124 Beta"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())

View file

@ -16,15 +16,23 @@ import (
// hookNames is a list of Git hooks' name that are supported. // hookNames is a list of Git hooks' name that are supported.
var hookNames = []string{ var hookNames = []string{
"pre-applypatch",
"applypatch-msg", "applypatch-msg",
"pre-applypatch",
"post-applypatch",
"pre-commit",
"prepare-commit-msg", "prepare-commit-msg",
"commit-msg", "commit-msg",
"pre-commit",
"pre-rebase",
"post-commit", "post-commit",
"pre-rebase",
"post-checkout",
"post-merge",
"pre-push",
// "update",
"post-receive", "post-receive",
"post-update", "post-update",
"push-to-checkout",
"pre-auto-gc",
"post-rewrite",
} }
var ( var (

View file

@ -1 +1 @@
0.7.21.1123 Beta 0.7.21.1124 Beta