Re: denying branch creation in a shared repository
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 19, 2009, 09:57 UTC
- Message-ID
- <alpine.DEB.1.00.0910191155310.4985@pacific.mpi-cbg.de>
- In-Reply-To
- <ee22b09e0910190132u20931fb4i6a98fb87582a9e56@mail.gmail.com>
Hi,
On Mon, 19 Oct 2009, Mohit Aron wrote:
Show 5 quoted lines
> I'm setting up a shared repository and I'd like to prevent users from > creating branches in it (they can of course create local branches in > their own clone of this repository). How can I accomplish this ? I > looked at 'git help config' and it seems I need something similar to the > parameter receive.denyDeletes - this prevents deletion of branches.
The easiest way to accomplish things is to look who had the same problem and solved it:
http://repo.or.cz/w/repo.git?a=blob;f=update-hook;h=98b419ecad61f6c80f;hb=6f92e96db0d605bed50db99029172607af301792#l16
Hth, Dscho