Browse Source

Uses tracking branch for ahead/behind if possible

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

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

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

Loading…
Cancel
Save