Commit 36f69b7c authored by John Cai's avatar John Cai

Correct documentation for global hooks

parent 17fc6231
...@@ -48,10 +48,9 @@ as appropriate. ...@@ -48,10 +48,9 @@ as appropriate.
## Set a global Git hook for all repositories ## Set a global Git hook for all repositories
To create a Git hook that applies to all of your repositories in To create a Git hook that applies to all of your repositories in
your instance, set a global Git hook. Since all the repositories' `hooks` your instance, set a global Git hook. Since GitLab will look inside the GitLab Shell
directories are symlinked to GitLab Shell's `hooks` directory, adding any hook `hooks` directory for global hooks, adding any hook there will apply it to all repositories.
to the GitLab Shell `hooks` directory will also apply it to all repositories. Follow Follow the steps below to properly set up a custom hook for all repositories:
the steps below to properly set up a custom hook for all repositories:
1. On the GitLab server, navigate to the configured custom hook directory. The 1. On the GitLab server, navigate to the configured custom hook directory. The
default is in the GitLab Shell directory. The GitLab Shell `hook` directory default is in the GitLab Shell directory. The GitLab Shell `hook` directory
......
...@@ -62,7 +62,7 @@ Please help other GitLab users when you can. ...@@ -62,7 +62,7 @@ Please help other GitLab users when you can.
The methods people will use to seek help can be found on the [getting help page](https://about.gitlab.com/get-help/). The methods people will use to seek help can be found on the [getting help page](https://about.gitlab.com/get-help/).
Sign up for the mailing list, answer GitLab questions on StackOverflow or Sign up for the mailing list, answer GitLab questions on StackOverflow or
respond in the IRC channel. respond in the IRC channel.
## I want to contribute ## I want to contribute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment