[Pkg-fonts-devel] Commit hook in git repository?

أحمد المحمودي aelmahmoudy at sabily.org
Sun Jun 3 06:28:25 UTC 2012


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 at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20120603/cad14371/attachment.pgp>


More information about the Pkg-fonts-devel mailing list