Subject: Re: [PATCH] update-hook: remove all functionality that should be in hooks/post-receive

From: Andy Parkins <[email-masked]>
Date: Sat, 24 Mar 2007 15:48:10 +0000

On Saturday 2007, March 24, Francis Moreau wrote:

> Are there any simple ways to enable this behaviour from your hooks ?

Yes; have a look near the bottom of the post receive hook (update to 
come today, so don't use it yet), but you'll see:

 while read oldrev newrev refname
 do
  generate_email $oldrev $newrev $refname | /usr/sbin/sendmail -t
 done

That pipe to send mail could be anything you want, say

 generate_email >> /var/www/update-announcements.txt

Would that suit you?

Andy

-- 
Dr Andy Parkins, M Eng (hons), MIET
[email-masked]