git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: disable branch modification

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 4, 2009, 16:50 UTC
Message-ID
<81b0412b0908040950j1aa8ca04t68061a79c96f6522@mail.gmail.com>
In-Reply-To
<24550469.post@talk.nabble.com>
On Sat, Jul 18, 2009 at 20:16, Ishaaq Chandy<ishaaq@gmail.com> 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.

Previous: Andreas Ericsson
Message 3 of 3 in “disable branch modification”
  1. Ishaaq ChandyJul 18, 2009
  2. Andreas EricssonAug 4, 2009
  3. Alex RiesenAug 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.