From 0c8bbd07905b27fdaa013e3f95bbddfba18943d6 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 8 Oct 2018 11:41:35 +0000 Subject: Move hook name note to the top --- doc/administration/custom_hooks.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/administration/custom_hooks.md b/doc/administration/custom_hooks.md index d64c2968616..c58ced7d520 100644 --- a/doc/administration/custom_hooks.md +++ b/doc/administration/custom_hooks.md @@ -50,6 +50,9 @@ Hooks can be also placed in `hooks/.d` (global) or `custom_hooks/.d` (per project) directories supporting chained execution of the hooks. +NOTE: **Note:** `.d` would need to be either `pre-receive.d`, +`post-receive.d`, or `update.d` to work properly. Any other names will be ignored. + To look in a different directory for the global custom hooks (those in `hooks/`), set `custom_hooks_dir` in gitlab-shell config. For Omnibus installations, this can be set in `gitlab.rb`; and in source @@ -69,8 +72,6 @@ pattern (`*~`). The hooks of the same type are executed in order and execution stops on the first script exiting with a non-zero value. -> **Note:** In the above examples, `.d` would need to be either `pre-receive.d`, `post-receive.d`, or `update.d` to work properly. Any other names would be ignored. - ## Custom error messages > [Introduced][5073] in GitLab 8.10. -- cgit v1.2.1