{"thread":{"id":"30631","subject":"git-http-backend with hooks","startedAt":"2012-05-26T14:11:55Z","lastAt":"2012-05-26T16:29:13Z","messageCount":2,"participants":["Tajti Ákos","Sitaram Chamarty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"192245","messageId":"4FC0E4AB.5050103@intland.com","threadId":"30631","inReplyTo":null,"subject":"git-http-backend with hooks","fromName":"Tajti Ákos","fromEmail":"akos.tajti@intland.com","sentAt":"2012-05-26T14:11:55Z","receivedAt":"2012-05-26T14:11:55Z","isPatch":false,"sender":{"key":"akos.tajti@intland.com","avatar":null},"body":"dear list,\n\nwe wrote a script that is basically a proxy before git-http-backend. All \ngit requests go through this and if some criteria is true then they're \npassed to git-http-backend. We also have hooks in our repositories. The \nproblem is that in some cases we don't want the hooks to run. Is it \npossible to somehow tell git-http-backend that the hooks shouldn't be run?\n\nthanks in advance,\nákos tajti\n"},{"id":"192247","messageId":"CAMK1S_hG7+5MU00UZouBs6+7JvHfxf-b5z=HKuJhioWPsc+aNw@mail.gmail.com","threadId":"30631","inReplyTo":"4FC0E4AB.5050103@intland.com","subject":"Re: git-http-backend with hooks","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2012-05-26T16:29:13Z","receivedAt":"2012-05-26T16:29:13Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"On Sat, May 26, 2012 at 7:41 PM, Tajti Ákos <akos.tajti@intland.com> wrote:\n> dear list,\n>\n> we wrote a script that is basically a proxy before git-http-backend. All git\n> requests go through this and if some criteria is true then they're passed to\n> git-http-backend. We also have hooks in our repositories. The problem is\n> that in some cases we don't want the hooks to run. Is it possible to somehow\n> tell git-http-backend that the hooks shouldn't be run?\n\nset an env var in your proxy (before it passes to git-http-backend)\nthen test for that in the hook code and exit\n"}]}