POST hook reports wrong branch at times
Just had a developer push 2 commits to Bitbucket (in a single push). We have a POST hook that reports the commits to a developer chatroom.
When the notifications for the two commits popped up in our chatroom it said the earlier commit was pushed to master (which nearly gave us a heart attack), but the more recent commit was pushed to the development branch (which is correct).
Both commits were pushed to the development branch.