From 3df5dcc1dcb4047ab90785d1296b27e15b9d0b90 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Tue, 8 Dec 2015 01:28:32 +0100 Subject: [PATCH] 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 --- modules/git/hooks.go | 1 + 1 file changed, 1 insertion(+) 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",