Skip to content
Snippets Groups Projects

Make the commit list more robust

Closed Martin Lowe requested to merge (removed):malowe/master/nil_checks into master
Files
2
+ 1
1
@@ -56,6 +56,6 @@ To enable the Git hook that makes use of this service, a running GitLab instance
1. Access the GitLab server shell, and create a folder at `/opt/gitlab/embedded/service/gitlab-shell/hooks/pre-receive.d/` if it doesn't already exist. This folder will contain all of the servers global Git hooks for pre-receive events. These hooks trigger when a user attempts to push information to the server.
1. In the host machine, copy the ECA script to the newly created folder. If using a docker container, this can be done with a call similar to the following:
`docker cp src/main/rb/eca.rb gitlab.eca_web_1:/opt/gitlab/embedded/service/gitlab-shell/hooks/pre-receive.d/`
`docker cp src/main/rb/eca.rb git-eca-rest-api-web-1:/opt/gitlab/embedded/service/gitlab-shell/hooks/pre-receive.d/`
1. In the GitLab shell once again, ensure that the newly copied script matches the folders ownership, and that the file permissions are `755`. This allows the server to properly run the hook when needed.
Loading