On Sun, Jun 03, 2012 at 07:45:49AM +0200, Christian PERRIER wrote:
> We have a commit hook in the SVN repo that sends commits to
> pkg-fonts-commits@lists.alioth.debian.org.
>
> Is there anyone in the team who would know how to setup one in the
> GIT repo, too? I think that such commit hooks help a lot in peer review.
---end quoted text---
fonts-hosny-amiri uses Git, and there is a commit hook used, to add a
hook to an already existing repository:
1) Add the following lines to config file (in the git repository)
[hooks]
mailinglist = pkg-fonts-commits@lists.alioth.debian.org
2) Add a file hooks/post-receive with the following contents, and set
the executable permission for that file:
#!/bin/sh
exec /usr/local/bin/git-commit-notice
* As for new Git repos, there is a setup-repository script in
/git/pkg-fonts, that does the whole job.
--
أحمد المحمودي (Ahmed El-Mahmoudy)
Digital design engineer
GPG KeyID: 0xEDDDA1B7
GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7
Attachment:
signature.asc
Description: Digital signature