Kirsten
Kirsten

Reputation: 18086

Unable to push to a Bitbucket Mercurial Repository

I am using SourceTree with Bitbucket.

I used to be able to push without errors.

Now I get

hg push --new-branch default
pushing to https://bitbucket.org/myusername/myrepository/branch/default
abort: HTTP Error 404: Not Found
Completed with errors, see above.

I can see the repository in the browser. I can push from a different machine. It works correctly on a machine where the url is [email protected]/myusername/myrepository.

Upvotes: 1

Views: 487

Answers (1)

Pierre-Yves David
Pierre-Yves David

Reputation: 396

You have to drop the branch/default part of the URL. The canonical repository URL is https://bitbucket.org/myusername/myrepository/.

For some reason, bitbucket allows read operations from URL/more/stuff but not write operations.

Upvotes: 3

Related Questions