Pārlūkot izejas kodu

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
Adam Strzelecki 9 gadi atpakaļ
vecāks
revīzija
3df5dcc1dc
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      modules/git/hooks.go

+ 1 - 0
modules/git/hooks.go

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