Skip to content

Commit cf5a394

Browse files
committed
Fixes #901 - better matcher for bitbucket server
1 parent 1ed94eb commit cf5a394

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
3838

3939
### Fixed
4040

41+
- Fixes [#901](https://github.com/eamodio/vscode-gitlens/issues/901) - Bitbucket Server fails when url = https://DOMAIN/stash/scm/PROJECT/REPO.git
4142
- Fixes [#1354](https://github.com/eamodio/vscode-gitlens/issues/1354) - Stuck after merge a branch with a single quote in the name
4243
- Fixes [#863](https://github.com/eamodio/vscode-gitlens/issues/863) - Pulling all repositories doesn't work unless built-in Git knows about the repo (requires VS Code v1.53 or later)
4344
- Fixes [#1332](https://github.com/eamodio/vscode-gitlens/issues/1332) - Stashes created with command line don't show up in the "Stashes" section

src/git/remotes/factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const builtInProviders: RemoteProviders = [
3838
creator: (domain: string, path: string) => new AzureDevOpsRemote(domain, path),
3939
},
4040
{
41-
custom: false,
42-
matcher: /\bbitbucket\b/i,
41+
custom: true,
42+
matcher: /^(.+\/(?:bitbucket|stash))\/scm\/(.+)$/i,
4343
creator: (domain: string, path: string) => new BitbucketServerRemote(domain, path),
4444
},
4545
{

0 commit comments

Comments
 (0)