aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-12-08 01:28:32 +0100
committerAdam Strzelecki <ono@java.pl>2015-12-08 01:28:32 +0100
commit3df5dcc1dcb4047ab90785d1296b27e15b9d0b90 (patch)
treed37bffdbba32d7a62af24c78b26fd0ea61521290
parent14080dd61d06a78c692182fe84f56b6c02b883e0 (diff)
Allow pre-receive hook customization
This hook can be used for example to reject too large commits and it is executed before "update" hook, used exclusively by Gogs to update its state. https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
-rw-r--r--modules/git/hooks.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/git/hooks.go b/modules/git/hooks.go
index 300a1005..77c7cb5a 100644
--- a/modules/git/hooks.go
+++ b/modules/git/hooks.go
@@ -27,6 +27,7 @@ var hookNames = []string{
"post-checkout",
"post-merge",
"pre-push",
+ "pre-receive",
// "update",
"post-receive",
"post-update",