I've got GitLab 8.16.4 and there are many groups with many projects. I'd like to create one location with many scripts run in loop as different hooks (just like in this solution Chaining git hooks) and in each project make custom_hooks
folder as a symlink to that earlier mentioned location.
I've got test project: /var/opt/gitlab/git-data/repositories/test/test.git/
. If I create there folder with hook (/var/opt/gitlab/git-data/repositories/test/test.git/custom_hooks/update
) it's invoked. But if folder is symlink to other location hook isn't invoked.
I checked owners of folders/files, but they are ok.
Project:
lrwxrwxrwx 1 gitlab gitlab 31 Feb 6 13:37 custom_hooks -> /home/user/custom_hooks
/home/user/custom_hooks:
drwxr-xr-x 2 gitlab gitlab 4096 Feb 6 13:31 custom_hooks
lrwxrwxrwx 1 gitlab gitlab 10 Feb 6 13:26 /home/user/custom_hooks/update -> hook-chain
Is there anything wrong with my configuration or maybe GitLab doesn't allow to invoke hooks from other localisation than files within project?