When admins install unexpected hooks on Bitbucket Server instances, running those hooks can cause failures trying to merge pull requests.
- Install a hook script, like commit-msg or pre-commit (The exact steps are not provided because it's not a supported behavior to do this.)
- Try to merge a pull request
The unexpected hook(s) are not invoked and the pull request merges successfully.
The unexpected hook(s) are run and the merge fails if any a hook blocks it.
One example of an exception caused by an unexpected hook blocking a pull request merge:
Uninstall the unexpected hooks. Script hooks on actions like commit-msg, pre-commit and similar are not supported.