Using the example here https://confluence.atlassian.com/bitbucket/push-back-to-your-repository-962352710.html
It fails on the "git push" step
<span><br>remote: Permission denied to update branch develop. </span><span><br>To <a href="http://bitbucket.org/complidev/pcg-data-api" target="_blank" rel="noopener noreferrer">http://bitbucket.org/MY_COMPANY/MY_REPO</a></span><span><br>! [remote rejected] develop -> develop (pre-receive hook declined)</span><span><br>error: failed to push some refs to '<a href="http://bitbucket.org/complidev/pcg-data-api" target="_blank" rel="noopener noreferrer">http://bitbucket.org/</a><a href="http://bitbucket.org/complidev/pcg-data-api" target="_blank" rel="noopener noreferrer">MY_COMPANY/MY_REPO</a>'</span><span>+ git push</span>
I've tried a few suggestions from the pre-December 2018 "Pushing back to your repository" update, but I don't want to reconfigure the whole repo when the documentation says this should just work now.
git remote -v in the pipeline show that I'm definitely using the HTTPS endpoint, and git pull in the pipeline works.