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

Re: git-http-backend with hooks

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
May 26, 2012, 16:29 UTC
Message-ID
<CAMK1S_hG7+5MU00UZouBs6+7JvHfxf-b5z=HKuJhioWPsc+aNw@mail.gmail.com>
In-Reply-To
<4FC0E4AB.5050103@intland.com>
On Sat, May 26, 2012 at 7:41 PM, Tajti Ákos <akos.tajti@intland.com> wrote:
Show 7 quoted lines
> dear list,
>
> we wrote a script that is basically a proxy before git-http-backend. All git
> requests go through this and if some criteria is true then they're passed to
> git-http-backend. We also have hooks in our repositories. The problem is
> that in some cases we don't want the hooks to run. Is it possible to somehow
> tell git-http-backend that the hooks shouldn't be run?

set an env var in your proxy (before it passes to git-http-backend) then test for that in the hook code and exit

Previous: Tajti Ákos
Message 2 of 2 in “git-http-backend with hooks”
  1. Tajti ÁkosMay 26, 2012
  2. Sitaram ChamartyMay 26, 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.