瀏覽代碼

Fixes #692 - make remote work with recent versions of Bitbucket Server

main
rozangu1 5 年之前
committed by Eric Amodio
父節點
當前提交
722a7d213b
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/git/remotes/bitbucket-server.ts

+ 2
- 2
src/git/remotes/bitbucket-server.ts 查看文件

@ -11,8 +11,8 @@ export class BitbucketServerRemote extends RemoteProvider {
}
protected get baseUrl() {
const [project, repo] = this.splitPath();
return `https://${this.domain}/projects/${project}/repos/${repo}`;
const [project, repo] = this.path.startsWith('scm/') ? this.path.replace('scm/', '').split('/') : this.splitPath();
return `${this.protocol}://${this.domain}/projects/${project}/repos/${repo}`;
}
get icon() {

Loading…
取消
儲存