gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
9.01k stars 1.34k forks source link

Manually configure the correct GitLab instance URL #2879

Open V4G4X opened 1 year ago

V4G4X commented 1 year ago

image When I do "open commit on Gitlab" it ALMOST gets the URL right.

It jumps to https://gitlab.myCompany.cn/ when actually it's expected to jump to https://gitlab.myCompany.cn:4675/ (notice the added port number).
Meaning I have to manually edit the URL every time I use this.

Is there a configuration that takes in the exact GitLab Instance URL to use?

dgonyier commented 1 year ago

We have a git instance on a non-default SSH port as well. I think in general there is a need to specify a non-default port for either HTTP(S) or SSH access for git instances, gitlab or otherwise

ITProKyle commented 1 year ago

Similar issue here but slightly different in that its not a port specification but a different URL. Our GitLab instance uses a different URL for SSH actions than the web UI (e.g. git@gitlab-ssh.prod.aws.foo.com/repo-name for cloning and https://gitlab-tools.foo.com/repo-name for web UI).

V4G4X commented 1 year ago

Here's the interesting part. For my colleague (who joined later) this works out of the box!!

Reinstalling has not helped me. (I've switched laptops twice in the past 2 months)