threads / discuss / 30631

git-http-backend with hooks

Subject: git-http-backend with hooks

## tl;dr

2 messages between May 26, 2012 and May 26, 2012.

replies: 1people: 2as markdown or json

Tajti Ákos· May 26, 2012, 14:11 UTC · lore
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?

thanks in advance, ákos tajti

Sitaram Chamarty· May 26, 2012, 16:29 UTC · re: Tajti Ákos · lore

Re: git-http-backend with hooks

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

← back to recent threads