Automatic commit mails for git repositories
Luca Capello
luca at pca.it
Sat Feb 2 13:41:53 UTC 2008
Hello!
I tested the instruction from the Debian wiki [1] and they work nicely.
1) create the gits repository on Alioth
alioth:~$ cd /git/pkg-common-lisp/
alioth:/git/pkg-common-lisp$ mkdir $PACKAGE.git
alioth:/git/pkg-common-lisp$ cd $PACKAGE.git
alioth:/git/pkg-common-lisp/$PACKAGE.git$ git --bare init --shared
alioth:/git/pkg-common-lisp/$PACKAGE.git$ vim description
2) set up the automatic commit mail
alioth:/git/pkg-common-lisp/$PACKAGE.git$ git config --add \
hooks.mailinglist "pkg-common-lisp-commits at lists.alioth.debian.org"
alioth:/git/pkg-common-lisp/$PACKAGE.git$ git config --add \
hooks.bcc "$PACKAGE_cvs at packages.qa.debian.org"
alioth:/git/pkg-common-lisp/$PACKAGE.git$ ln -s \
/usr/local/bin/git-commit-notice hooks/post-receive
/usr/local/bin/git-commit-notice is the Debian patched version [2] of
upstream git/contrib/hooks/post-receive [3]. As explained at [2], my
idea is to track as closest as possible upstream and my work is
available at [4] (and /home/users/gismo/bin/git_post-receive-email as
well). I strongly advice to use the Debian one instead, at least for
the official Debian Common Lisp Team packages.
3) push the local repository to the Alioth one
local:~$ cd ~/var/lib/git/$PACKAGE/
local:~/var/lib/git/$PACKAGE$ git remote add alioth \
ssh://$USER@git.debian.org:/git/pkg-common-lisp/$PACKAGE.git
local:~/var/lib/git/$PACKAGEt$ git push alioth $BRANCHNAME
4) if all is OK, the -commits@ list should have received the mail, as
well as the subscribers to the PTS with keyword 'cvs' for the given
$PACKAGE :-)
Suggestions, comments?
Thx, bye,
Gismo / Luca
Footnotes:
[1] http://wiki.debian.org/Alioth/Git
[2] http://alioth.debian.org/tracker/index.php?func=detail&aid=310547&group_id=1&atid=200001
[3] http://git.kernel.org/?p=git/git.git;a=history;f=contrib/hooks/post-receive-email
[4] http://git.debian.org/?p=users/gismo/git.git;a=history;f=contrib/hooks/post-receive-email
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-common-lisp-devel/attachments/20080202/e30c1b83/attachment.pgp
More information about the pkg-common-lisp-devel
mailing list