I have a git (gitosis) repo where every developer have a main branch. I have a script in post-update hook that rebuild main web site and test websites for every developer on every PUSH.
I want to rebuild only site corresponding to the committed branch, but don't know how to determine committed branch name. Could anyone help?