Issue Summary
A change in logic for pre-receive hooks happened after Bitbucket 7.15.0 where the pre-receive hook does not have access to the new object being pushed. Or at least not in the same way.
Steps to Reproduce
- Create a repository
- Add a custom pre-receive hook script to the repository's pre-receive directory
- Perform a push to that repository
Expected Results
Successfully push the changes to the repository
Actual Results
Pushed changes are rejected due to bad object detected
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available