Re: [PATCH] update-hook: remove all functionality that should be in hooks/post-receive
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Mar 24, 2007, 15:48 UTC
- Message-ID
- <200703241548.13775.andyparkins@gmail.com>
- In-Reply-To
- <38b2ab8a0703240743t3ca2b091w12072046ee03dd5@mail.gmail.com>
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 andyparkins@gmail.com