How to install hooks in gitolite

前端 未结 2 1691
梦如初夏
梦如初夏 2021-02-14 23:01

I\'ve read all the documentation about hooks, similar questions and a lot of code but I can\'t track where is the error in my procedure. I need to install a simple hook in my gi

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-14 23:41

    In Gitolite v3 you may choose where to put your hooks editing LOCAL_CODE variable in .gitolite.rc. See the file source for more options (eg. enabling per repo custom hooks)

    Then you put your hooks in the specified dir, make them executable and run gitolite setup --hooks-only.

提交回复
热议问题