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

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

 



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@xxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]