distgit: Block push of branches named 'origin/*'

We already use the update hook for gitolite.

This introduces a new update hook, which merely chains the gitolite one,
and a new one to block pushes to badly named branches.

The new hook was written originally by Till Maas.

https://fedorahosted.org/rel-eng/ticket/4071
This commit is contained in:
Mathieu Bridon 2014-09-18 16:54:39 +02:00 committed by Pierre-Yves Chibon
parent 57e3254f1a
commit 7ab3ff2817
4 changed files with 34 additions and 2 deletions

View file

@ -13,6 +13,8 @@
with_items:
- post-receive-fedmsg
- post-receive-chained
- update-block-push-origin
- update-chained
- name: install the git mail hooks
copy: src={{item}} dest=/usr/share/git-core/mail-hooks mode=0755