I'm a git & github user that's new to mercurial & bitbucket and I'm trying to use bitbucket for a project.
So far I've got write access to a new private bitbucket repository, and I got started by:
authorization failed
via:$ hg push https://[email protected]/DB2UAdmin/repo http authorization required realm: Bitbucket.org HTTP user: mariusbutuc password: pushing to https://[email protected]/DB2UAdmin/repo searching for changes abort: authorization failed
$ hg push ssh://[email protected]/DB2UAdmin/repo pushing to ssh://[email protected]/DB2UAdmin/repo searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 9664 changes to 9664 files remote: You're not allowed to write to this repository. remote: transaction abort! remote: rollback completed remote: abort: pretxnchangegroup.bb_perm hook failed
also attempted via simple HTTP, got similar results as with HTTPS.
How can I get it to work?
Extra details:
...I still couldn't pass the auth test.
$ hg push ssh://[email protected]/DB2UAdmin/repo pushing to ssh://[email protected]/DB2UAdmin/repo searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 9664 changes to 9664 files remote: bb/acl: mariusbutuc is allowed. accepted payload.
I still have no idea why pushing via HTTPS [username/password] failed!
For those of you that arrive here from googling "pretxnchangegroup.bb_perm hook failed" this can be caused by trying to merge to a branch that you do not have the "write" permission under "branch permissions" on bitbucket. Presumably this is because you should have used a pull request for the merge rather than going ahead and merging on your local.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With