"Could not load branches and tags" reloaded (#5071)

Issue #5164 duplicate
Ansariel Hiller
created an issue

Apparently it's not possible to load the list of branches and tags if the repository is opened under a custom URL. As long as the URL contains the bitbucket.org URL, everything works fine. If it's something else, it doesn't work.

For instance try to open the branches and tags list on the source tab for the following repositories:

Or another example: