浏览代码

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() {

正在加载...
取消
保存