設定 gitolite 儲存庫掛鉤

設定 gitolite 儲存庫掛鉤

我已經根據頁面上的文件設定了 gitolite 儲存庫特定的鉤子http://gitolite.com/gitolite/non-core.html#hooks

我已repo-specific-hooks在文件中啟用該功能.gitolite.rc。我hooks/repo-specific在 gitolite-admin 儲存庫中建立了一個帶有鉤子腳本的目錄,並option hook.post-receivegitolite.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.

相關內容