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

Re: git-smart-http reject push

From
TÁTajti Ákos <akos.tajti@intland.com>
Date
Jun 1, 2012, 06:52 UTC
Message-ID
<4FC866CA.1080203@intland.com>
In-Reply-To
<CAMK1S_iAxdTg04ctZMUKAyoBRGT=w8rp2dTMDFvmpW_McPP-hQ@mail.gmail.com>
Thanks for the answers!
Ákos
2012.06.01. 5:53 keltezéssel, Sitaram Chamarty írta:
Show 21 quoted lines
> On Fri, Jun 1, 2012 at 2:08 AM, Tajti Ákos<akos.tajti@intland.com>  wrote:
>> Dear List,
>>
>> we wrote a servlet that is basically a proxy for git-http-backend. We want
>> to control who can create a new branch. Is there a way to reject a push that
>> would create a new branch (without using hooks)?
> Not sure what else your servlet does or how it affects things but
> gitolite has controls to prevent branches being created (among many
> many other things, limited mostly by ones imagination!).
>
> Gitolite is normally used with ssh but it has been tested with smart
> http also.  It itself acts as a proxy for git-http-backend, inspecting
> the URI and QUERY_STRING and such animals to decode some things, while
> the rest happens via a special update hook that is installed in each
> repo that it controls.
>
> (Specifically, the branch create check is done there, not in the part
> that is proxying the git-http-backend process.  You probably know that
> the update hook is invoked by git itself).
>
> Sitaram
Previous: Sitaram Chamarty
Message 4 of 4 in “git-smart-http reject push”
  1. Tajti ÁkosMay 31, 2012
  2. Shawn PearceMay 31, 2012
  3. Sitaram ChamartyJun 1, 2012
  4. Tajti ÁkosJun 1, 2012

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.