I enabled branch permissions so that people have to merge from a pull request to get code onto master. However, when we tried to merge and push from our Git client (so we can use different merge strategies and clean up the branch with interactive rebase), we got an error:
remote: permission denied to update branch master
To bitbucket.org:.../....git
! [remote rejected] master -> master (pre-receive hook declined)
A pull request was already open for this and we were able to merge online, but should it still work from outside Bitbucket as long as the PR was approved?