Skip to content

Commit f292bd0

Browse files
committed
Fixes path splitting logic in BitbucketServerRemote (#3218)
1 parent 308b23a commit f292bd0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

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

1111
- Fixes [#3841](https://github.com/gitkraken/vscode-gitlens/issues/3841) - Inspect & Graph Details: autolinks rendering when enabled setting is false
12+
- Fixes [#3218](https://github.com/gitkraken/vscode-gitlens/issues/3218) - Bitbucket Server remote - "scm/" path prefix not removed (regression)
1213

1314
## [16.3.0] - 2025-02-11
1415

src/git/remotes/bitbucket-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class BitbucketServerRemote extends RemoteProvider {
5858
if (this.path.startsWith('scm/')) {
5959
const path = this.path.replace('scm/', '');
6060
const index = path.indexOf('/');
61-
return [this.path.substring(0, index), this.path.substring(index + 1)];
61+
return [path.substring(0, index), path.substring(index + 1)];
6262
}
6363

6464
return super.splitPath();

0 commit comments

Comments
 (0)