0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-24 00:03:11 -05:00

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
This commit is contained in:
Adam Strzelecki 2015-12-08 01:28:32 +01:00
parent 14080dd61d
commit 3df5dcc1dc

View file

@ -27,6 +27,7 @@ var hookNames = []string{
"post-checkout", "post-checkout",
"post-merge", "post-merge",
"pre-push", "pre-push",
"pre-receive",
// "update", // "update",
"post-receive", "post-receive",
"post-update", "post-update",