From: Alex Riesen Date: Tue, 04 Aug 2009 16:50:51 GMT Subject: Re: disable branch modification Message-ID: <81b0412b0908040950j1aa8ca04t68061a79c96f6522@mail.gmail.com> In-Reply-To: <24550469.post@talk.nabble.com> On Sat, Jul 18, 2009 at 20:16, Ishaaq Chandy wrote: > 1. Create new branches on it > 2. Delete existing branches from it You cannot have these. > 3. push non-fast-forward commits to it. > > I think I'll need to write a pre-receive hook for this, but before I embark > on this, any helpful pointers would be appreciated. Look in the mailing list archives for pre-receive, update and SSH, there were some good examples of update and pre-receive posted. Also, there is contrib/hooks/update-paranoid in Git repo. It implements an ACL per SSH user.