I want to hook into the creation of a new branch. Either when the branch is created or when the first push is done. Is one or both possible?
It's the update hook, it gets a zero sha for new refs, branches will say heads not tags