瀏覽代碼

Stops comparing the branch to itself

main
Eric Amodio 3 年之前
父節點
當前提交
183873a418
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      src/git/gitService.ts

+ 4
- 4
src/git/gitService.ts 查看文件

@ -1255,10 +1255,10 @@ export class GitService implements Disposable {
if (weightedBranch.weight === maxDefaultBranchWeight) break;
}
return GitRevision.createRange(
weightedBranch!.branch.tracking ?? weightedBranch!.branch.ref,
branch.ref,
);
const possibleBranch = weightedBranch!.branch.tracking ?? weightedBranch!.branch.ref;
if (possibleBranch !== branch.ref) {
return GitRevision.createRange(possibleBranch, branch.ref);
}
}
}

Loading…
取消
儲存