summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gogs.go2
-rw-r--r--modules/git/hooks.go14
-rw-r--r--templates/.VERSION2
3 files changed, 13 insertions, 5 deletions
diff --git a/gogs.go b/gogs.go
index fc94514bd9..5814599407 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.7.21.1123 Beta"
+const APP_VER = "0.7.21.1124 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
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 (
diff --git a/templates/.VERSION b/templates/.VERSION
index 407198f7cc..5ca4043c1f 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.7.21.1123 Beta \ No newline at end of file
+0.7.21.1124 Beta \ No newline at end of file