A simple pre-receive hook (blocking all commits+push) is not invoked when the Bitbucket built-in editor is used. Any change can be committed and is added to the respective ref/branch regardless of the pre-receive hook presence.
A push from a git CLI invokes the pre-receive hook and the push is rejected.
How to reproduce:
- Create app with simple
<pre-receive-hook>that rejects everything
- Install app in BBS
- edit a file in a repository on ‘master’ branch with the BBS Editor
- Commit the file.
Expected result: commit rejected
Actual result: commit accpted