Git repository hooks for mailing list (was Re: Git migration update)
On Wed, Aug 03, 2011 at 09:03:15PM +0200, Alessandro Ghedini wrote:
> > > * hooks for mailing list
> > >
> > > I don't know if this is on anyone's todo list but it seems that the git
> > > repositories currently lack all the needed configuration to automatically
> > > post all the commits, tags and similar to the pkg-perl-commits mailing list.
> > >
> > > Having a closer look at one of the repositories it seems that the code is
> > > there but it has been disabled (or never enabled). Is there any reason to
> > > not enable it, now that the migration is complete?
> >
> > I am not sure if these worked at all. Can someone try enabling the
> > hook for a single repository and pushing to it? If everything works,
> > there should be a mass-sed change plus update of the setup-repository
> > script (I can do both).
>
> Just tried with the attic/test.git repository (you should have seen the
> email) and it seems to work. The changes needed are:
>
> * git config hooks.mailinglist pkg-perl-cvs-commits.lists.alioth.debian.org
> * git config hooks.announcelist pkg-perl-cvs-commits.lists.alioth.debian.org
> * edit the file hooks/post-receive, uncomment the second line
>
> For every repository.
I've just modified the git configuration for the repositories under
/git/pkg-perl/packages with the above configuration (only the first two
points), and, if anyone hasn't anything against this, I am going to modify
the post-receive hooks and the setup-repository script as well.
The notification emails for new commits will look like this one [0].
Any objection?
Cheers
[0] http://lists.alioth.debian.org/pipermail/pkg-perl-cvs-commits/2011-August/077938.html
--
perl -E'$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
Reply to: