mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 17:25:33 -05:00
Reduces git calls on known untrackables
This commit is contained in:
@@ -114,7 +114,7 @@ export class GitContextTracker extends Disposable {
|
||||
private async _updateContextHasRemotes(uri: GitUri | undefined) {
|
||||
try {
|
||||
let hasRemotes = false;
|
||||
if (uri) {
|
||||
if (uri && this.git.isTrackable(uri)) {
|
||||
const repoPath = uri.repoPath || this.git.repoPath;
|
||||
if (repoPath) {
|
||||
const remotes = await this.git.getRemotes(repoPath);
|
||||
|
||||
Reference in New Issue
Block a user