diff options
author | Adam Strzelecki <ono@java.pl> | 2015-12-08 01:28:32 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-12-08 01:28:32 +0100 |
commit | 3df5dcc1dcb4047ab90785d1296b27e15b9d0b90 (patch) | |
tree | d37bffdbba32d7a62af24c78b26fd0ea61521290 /modules/git/hooks.go | |
parent | 14080dd61d06a78c692182fe84f56b6c02b883e0 (diff) | |
download | gitea-3df5dcc1dcb4047ab90785d1296b27e15b9d0b90.tar.gz gitea-3df5dcc1dcb4047ab90785d1296b27e15b9d0b90.zip |
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
Diffstat (limited to 'modules/git/hooks.go')
-rw-r--r-- | modules/git/hooks.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/git/hooks.go b/modules/git/hooks.go index 300a100532..77c7cb5a41 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", |