NOTE: **Note:**`<hook_name>.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
To look in a different directory for the global custom hooks (those in
`hooks/<hook_name.d>`), set `custom_hooks_dir` in gitlab-shell config. For
`hooks/<hook_name.d>`), set `custom_hooks_dir` in gitlab-shell config. For
Omnibus installations, this can be set in `gitlab.rb`; and in source
Omnibus installations, this can be set in `gitlab.rb`; and in source
...
@@ -69,8 +72,6 @@ pattern (`*~`).
...
@@ -69,8 +72,6 @@ pattern (`*~`).
The hooks of the same type are executed in order and execution stops on the
The hooks of the same type are executed in order and execution stops on the
first script exiting with a non-zero value.
first script exiting with a non-zero value.
> **Note:** In the above examples, `<hook_name>.d` would need to be either `pre-receive.d`, `post-receive.d`, or `update.d` to work properly. Any other names would be ignored.