Search code examples
gitcommitgitolite

Can gitolite manage git commit-msg hook?


I have been trying to find a way to make gitolite manage and propagate the git commit-msg hook to a specific repo but I have not been successful. Is this possible?


Solution

  • A git commit-msg hook is a client-side hook.

    gitolite deals with the authorization validation on the server side.
    As such, it has no vocation to manage a lcient-side hook such as commit-msg.

    The hooks that you can add in gitolite are update hooks (a server side hook), or a post-receive hooks. Any client-side hook would be ignored (as in never triggered)