threads / discuss / 33213

git branch based hook desigh

Subject: git branch based hook desigh

## tl;dr

2 messages between Mar 18, 2013 and Mar 20, 2013.

replies: 1people: 2as markdown or json

Magnus Bäck· Mar 20, 2013, 13:46 UTC · re: Joydeep Bakshi · lore

Re: git branch based hook desigh

On Monday, March 18, 2013 at 00:27 EDT,
     Joydeep Bakshi <joydeep.bakshi@infoservices.in> wrote:
> I have implemented git pre-received hook successfully. And it works on
> the repo level.
> Could anyone suggest how to call branch level hook please ?--

If you need to have different hook behaviors depending on the ref that's about to be updated, just put a conditional in the hook. You get the name(s) of ref(s) to be updated on stdin.

-- 
Magnus Bäck
baeck@google.com

← back to recent threads