Browse Source

Stops comparing the branch to itself

main
Eric Amodio 3 years ago
parent
commit
183873a418
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/git/gitService.ts

+ 4
- 4
src/git/gitService.ts View File

@ -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…
Cancel
Save