【发布时间】:2017-06-23 15:05:02
【问题描述】:
我有 GitLab 8.16.4,并且有很多团队有很多项目。我想创建一个位置,其中许多脚本作为不同的钩子循环运行(就像在此解决方案中Chaining git hooks 一样),并且在每个项目中将custom_hooks 文件夹作为指向前面提到的位置的符号链接。
我有测试项目:/var/opt/gitlab/git-data/repositories/test/test.git/。如果我用钩子(/var/opt/gitlab/git-data/repositories/test/test.git/custom_hooks/update)创建那里的文件夹,它就会被调用。但如果文件夹是指向其他位置的符号链接,则不会调用钩子。
我检查了文件夹/文件的所有者,但他们没问题。
项目:
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
我的配置有什么问题,或者 GitLab 不允许从项目中的文件以外的其他本地化调用钩子?
【问题讨论】:
标签: gitlab