I'm really confused about how to configure a GitLab global hook. The documentation is clear about how to set a global hook. So I login in my GitLab instance, go to the directory /opt/gitlab/embedded/service/gitlab-shell/hooks
, and it has 3 files:
-rwxr-xr-x 1 root root 131 Jun 10 16:22 post-receive
-rwxr-xr-x 1 root root 131 Jun 10 16:22 pre-receive
-rwxr-xr-x 1 root root 131 Jun 10 16:22 update
All the files have the same content:
# cat pre-receive
#!/bin/sh
echo "The gitlab-shell hooks have been migrated to Gitaly, see https://gitlab.com/gitlab-org/gitaly/issues/1226"
exit 1
Since they all have a exit 1
, clearly these hooks aren't being executed anymore.
The linked issue, is really confusing. It is a roadmap to implement something called Gitaly but I really don't see how to use it to implement global Git hooks.
Does anyone can show me the step by steps configuration of a git global hook in GitLab CE edition?