1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Now gitosis server will notify when a developer pushes some code there.

This is how it was done: http://www.rubick.com/blogger/one-entry?entry_id=30408

Then I debugged some: http://pastie.textmate.org/695284

And then a command to do it all over again:

cd /git-homedir/repositories; \
for GIT_DIR in {list,of,my,various,repositories}.git; do \
   ln -sf /usr/share/doc/git-core/contrib/hooks/post-receive-email $GIT_DIR/hooks/post-receive ; \
   GIT_DIR=$GIT_DIR git config --add hooks.mailinglist "[email protected], [email protected]" 
done

I had to use these a few times too:

GIT_DIR=$GIT_DIR git config --unset-all hooks.mailinglist

GIT_DIR=$GIT_DIR git config --remove-section hooks