# git-http-backend with hooks

2 messages from 2012-05-26 to 2012-05-26. Participants: Tajti Ákos, Sitaram Chamarty.
Thread: https://gitlist.dev/t/30631

## Tajti Ákos, 2012-05-26 14:11

Subject: git-http-backend with hooks
Message-ID: <4FC0E4AB.5050103@intland.com>
URL: https://gitlist.dev/e/4FC0E4AB.5050103%40intland.com

```
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, 2012-05-26 16:29

Subject: Re: git-http-backend with hooks
Message-ID: <CAMK1S_hG7+5MU00UZouBs6+7JvHfxf-b5z=HKuJhioWPsc+aNw@mail.gmail.com>
URL: https://gitlist.dev/e/CAMK1S_hG7%2B5MU00UZouBs6%2B7JvHfxf-b5z%3DHKuJhioWPsc%2BaNw%40mail.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:
> 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

```
