Skip to contentSkip to conversation

git-http-backend with hooks

DISCUSSION Tajti Ákos 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Tajti Ákos

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