From 381f5719520e50974131364474c3e630912a0f6c 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 300a10053..77c7cb5a4 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",