Skip to content

Commit

Permalink
Fixes #3218 - fix bitbucket-server splitPath "scm/" regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Coteh committed Apr 6, 2024
1 parent da5a1f2 commit 0707276
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Fixes [#3180](https://github.com/gitkraken/vscode-gitlens/issues/3180) - Focus View feedback button is not working
- Fixes [#3179](https://github.com/gitkraken/vscode-gitlens/issues/3179) - The checkmarks in cherry pick are not displayed
- Fixes [#3218](https://github.com/gitkraken/vscode-gitlens/issues/3218) - Bitbucket Server remote provider's splitPath method splits on path with "scm/" prefix instead of transformed path without "scm/" prefix

## [14.9.0] - 2024-03-06

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ A big thanks to the people that have contributed to this project 🙏❤️:
- Ian Chamberlain ([@ian-h-chamberlain](https://github.com/ian-h-chamberlain)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=ian-h-chamberlain)
- Brandon Cheng ([@gluxon](https://github.com/gluxon)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=gluxon)
- yutotnh ([@yutotnh](https://github.com/yutotnh)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=yutotnh)
- James Cote ([@Coteh](https://github.com/Coteh)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=Coteh)

Also special thanks to the people that have provided support, testing, brainstorming, etc:

Expand Down
2 changes: 1 addition & 1 deletion src/git/remotes/bitbucket-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class BitbucketServerRemote extends RemoteProvider {
if (this.path.startsWith('scm/')) {
const path = this.path.replace('scm/', '');
const index = path.indexOf('/');
return [this.path.substring(0, index), this.path.substring(index + 1)];
return [path.substring(0, index), path.substring(index + 1)];
}

return super.splitPath();
Expand Down

0 comments on commit 0707276

Please sign in to comment.