Subject: Post commits not pushed on new branch creation (only on subsequent pushes)
Hi
Over at RunCodeRun we've noticed that new branches don't get pushed to post-commit urls, although the very next push on the branch does come through. Is this expected behavior?
Thanks,
Rob
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Tekkub on 21 Sep, 2009 05:58 AM
It is the current design, I'd like to change it though. The problem is when a new branch is pushed, git doesn't tell the script what commits are new. It simply says the branch went from no commits to commit X. My workaround is to push the branch immediately when you create it, before you commit to it. Then all following commits will fire off hooks.