-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
- GitLens Version: 10.1.2
- VSCode Version: 1.40.0
- OS Version: MacOs Mojave (10.14.6)
Steps to Reproduce:
- Use Bitbucket Server with such a remote:
https://DOMAIN/stash/scm/PROJECT/REPO.git
The most important part is additional/stashin the URL. - Function
baseUrl()inbitbucket-server.tsfails, becausethis.path.startsWith('scm/')is not true and invokedthis.splitPath()results inproject = "stash"&repo = "scm/PROJECT/REPO". - Such a behaviour also make it impossible to create a proper custom URL, because you also get wrong tokens:
${repoBase} = stash,${repo} = stash/scm/PROJECT/REPOand${repoPath} = scm/PROJECT/REPO. Due to that you're not able to reproducehttps://DOMAIN/stash/projects/PROJECT/repos/REPO/browsein any way.
You can try to create a custom Bitbucket Server config and put /stash or /stash/ in the domain field, but it just doesn't work - config is not taken into account when running e.g. Open Repository on Remote, so I assume using slashes in the domain field is not possible.
Potential solution:
Just make it possible to set DOMAIN/stash in the domain field in a Remote configuration or change this.path.startsWith('scm/') line to be also true when any string occurs before scm (and change this.path.replace('scm/', '') similarly).
meandmax, sokratisg and robross0606
Metadata
Metadata
Assignees
Labels
needs-verificationRequest for verificationRequest for verification