|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|