[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

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)
        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:

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 Fingerprint: 8206 A196 2084 7E6D 0DF8  B176 BC19 6A94 EDDD A1B7

Attachment: signature.asc
Description: Digital signature

Reply to: