#2005 Turn off commit mails for augeas
Closed: Fixed None Opened 14 years ago by lutter.

I requested sending commit emails for git://git.fedorahosted.org/git/augeas.git to augeas-devel@redhat.com. It is now becoming a little annoying, and I'd like to have that turned off.

Please change the config of the augeas repo to not send any commit emails.


Forgot to say: the request for turning mails on was made and fulfilled in ticket 1126

I've deleted the update hook which was used to send commit mail (this was a symlink to /usr/bin/cluster-git-update-hook, for reference).

It may also be worth noting for other sysadmin-hosted folks that, IMHO, we should '''not''' use the update hook for this task. We should use the post-receive hook instead. The update hook is intended to check on and allow/disallow a push from proceeding. Using it for commit messages requires extra care because an error will result in a failed push.

I added an update hook back to augeas, per request on IRC. This hook extends the stock git update hook slightly, based on work Jim Meyering did for the gnulib git repo (http://lists.gnu.org/archive/html/bug-gnulib/2008-10/msg00221.html).

For reference, I ran the following:

cd /git/augeas.git/hooks/
sudo ln -sv /usr/share/git-core/custom-hooks/update update
cd ..
sudo git config --bool hooks.denybadwhitespace true
sudo git config --bool hooks.denymerge.master true

If you have any trouble with these David, let us know.

Login to comment on this ticket.

Metadata