![設定 gitolite 儲存庫掛鉤](https://rvso.com/image/697394/%E8%A8%AD%E5%AE%9A%20gitolite%20%E5%84%B2%E5%AD%98%E5%BA%AB%E6%8E%9B%E9%89%A4.png)
我已經根據頁面上的文件設定了 gitolite 儲存庫特定的鉤子http://gitolite.com/gitolite/non-core.html#hooks
我已repo-specific-hooks
在文件中啟用該功能.gitolite.rc
。我hooks/repo-specific
在 gitolite-admin 儲存庫中建立了一個帶有鉤子腳本的目錄,並option hook.post-receive
在gitolite.conf
.
推送 gitolite-admin 儲存庫後,我現在收到錯誤訊息
no files/dirs called 'hooks' or 'logs' are allowed
在 gitolite 日誌中,自訂post-receive
鉤子不是由 gitolite 設定的。如何正確設定掛鉤?
答案1
原來頁面上的信息 http://gitolite.com/gitolite/non-core.html#hooks 實際上是錯誤的對於 3.6 版本。
頁面上描述了正確的設定過程 http://gitolite.com/gitolite/cookbook.html#v3.6-variation-repo-specific-hooks
該目錄必須建立為local/hooks/repo-specific
不作為hooks/repo-specific
.