Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to install hooks in gitolite
    primarykey
    data
    text
    <p>I've read all <a href="https://github.com/sitaramc/gitolite/blob/pu/doc/2-admin.mkd#_using_hooks" rel="nofollow noreferrer">the documentation about hooks</a>, <a href="https://stackoverflow.com/questions/5055190/how-to-setup-post-receive-email-git-hook-with-gitolite">similar</a> <a href="https://stackoverflow.com/questions/4937755/gitolite-hooks-post-receive-doesnt-seem-to-work">questions</a> and <a href="https://github.com/sitaramc/gitolite/blob/pu/src/gl-install#L91" rel="nofollow noreferrer">a lot of code</a> but I can't track where is the error in my procedure. I need to install a simple hook in my gitolite installation (made with an rpm package on CentOS) so here is what I did:</p> <p>To install gitolite (some time ago):</p> <ol> <li>Installed the rpm package</li> <li><code># su - gitolite</code></li> <li><code>$ gl-setup /tmp/fabio.pub</code> (as gitolite user)</li> </ol> <p>Now to install the hook:</p> <ol> <li>Created a sample file <code>post-update</code> with the hook code in <code>~gitolite/.gitolite/hooks/common</code> and <code>chmod +x</code> on it</li> <li>run <code>gl-setup /tmp/fabio.pub</code> again as <a href="https://github.com/sitaramc/gitolite/blob/pu/doc/2-admin.mkd#_using_hooks" rel="nofollow noreferrer">stated here</a></li> </ol> <p>But nothing happened, the exit status from the latest command is 0, but the hook file is not symlinked in any of the repository. So what's wrong with my procedure? Have I missed something?</p> <p>Bonus questions:</p> <ol> <li>If I had understood the doc my procedure is the right one? I.e. should I run gl-setup every time I update any hook?</li> <li>In this way I install the shared hooks in every repository under this gitolite installation, is that right? Can I manually install an hook either as symlink to somewhere or just an executable script only for a given repository? Should I do that manually in the hook folder of the given repository? Should I care of hooks conflicts (i.e. would any custom hook for the single repository block any other shared hook with the same name)?</li> </ol> <p>Don't know if this matters, my gitolite version is <code>1.5.9.1</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload