++added:
Enabling Commit Notifications
---------

Set git configurations::

 cd /srv/git/eliot.git/
 git config hooks.mailinglist [email protected]

Unprotect hooks/ directory::

 chattr -i hooks/
 cd hooks/

Create post-receive hook:

post-receive file::

 #!/bin/bash 
 exec run-parts hooks/post-receive.d

Make script executable::

 chmod +x post-receive
 
Create post-recieve.d directory::

 mkdir post-receive.d#
 cd post-receive.d

Link to post-receive-email script in post-receive.d directory::

 ln -s /usr/src/git/contrib/hooks/post-receive-email post-receive-email

Protect hooks/ direcotry again::

 cd ../..
 chattr +i hooks/


--
forwarded from 
http://savannah.gnu.org/maintenance/Git#[email protected]/maintenance

Reply via email to