Gitolite 저장소 후크 설정

Gitolite 저장소 후크 설정

페이지의 문서에 따라 Gitolite 저장소 특정 후크를 설정했습니다.http://gitolite.com/gitolite/non-core.html#hooks

repo-specific-hooks파일 에서 기능을 활성화했습니다 .gitolite.rc. hooks/repo-specificgitolite-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-특이적-hooks

디렉토리는 local/hooks/repo-specific가 아닌 으로 생성되어야 합니다 hooks/repo-specific.

관련 정보