Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open remote on bitbucket #692

Closed
gbritton1 opened this issue Mar 26, 2019 · 5 comments

Comments

Projects
None yet
5 participants
@gbritton1
Copy link

commented Mar 26, 2019

  • GitLens Version: 9.5.1
  • VSCode Version: 1,32,3
  • OS Version: Windows 10

Steps to Reproduce:

  1. Connect to a Bitbucket repo, e.g.
git remote -v
origin  https://bitbucket.tds.td.com/scm/tbsm/tbsm-vision-db.git (fetch)
origin  https://bitbucket.tds.td.com/scm/tbsm/tbsm-vision-db.git (push)

Click on :Open Branch On Remote

  1. 404 since the URL is incorrect
    (tries to go to https://bitbucket.tds.td.com/projects/scm/repos/tbsm/tbsm-vision-db/commits?until=develop)

Correct url is: https://bitbucket.tds.td.com/projects/TBSM/repos/tbsm-vision-db/commits

The problem is the "scm/" inserted in the bad url.

@MitchLillie

This comment has been minimized.

Copy link

commented Apr 11, 2019

Also having this issue with Bitbucket Server v5.16.0

scm appears in the git URL, however it is not used at all in formulating the url for browsers to visit. Even with the gitlens.remotes configuration, it is not possible to construct a dynamic URL that works for each of my repos, and I have to hardcode it per-project.

Example:

${repo}: scm/myproject/myrepo
${repoPath}: myproject/myrepo
${repoBase}: scm

An example URL I need is:
https://bitbucket.customurl.com/projects/myproject/repos/myrepo/commits/a1b2c3

h1. Solution

Ignore /scm when translating the remote names into browser-friendly URLs. Possibly could just add a replace call here, though probably we should find a way to more specifically scope it to BB Server.

@grozan

This comment has been minimized.

Copy link

commented Jun 12, 2019

PR #767 submitted

@eddyp

This comment has been minimized.

Copy link

commented Jul 9, 2019

When is the next release planned? I'm so tempted to hack a local copy version of the plugin just for this fix...

@eamodio

This comment has been minimized.

Copy link
Owner

commented Jul 9, 2019

Most likely tonight or tomorrow night.

@eddyp

This comment has been minimized.

Copy link

commented Jul 9, 2019

Most likely tonight or tomorrow night.

Excellent!

BTW, thank you for your work! It's appreciated!

@eamodio eamodio closed this in 722a7d2 Jul 9, 2019

@eamodio eamodio removed this from the Soon™ milestone Jul 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.