Skip to content

Commit 43f362b

Browse files
committed
1 parent 5200dcd commit 43f362b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

extensions/git/src/model.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ export class Model implements IRemoteSourceProviderRegistry {
148148
}
149149

150150
private onPossibleGitRepositoryChange(uri: Uri): void {
151+
const config = workspace.getConfiguration('git');
152+
const autoRepositoryDetection = config.get<boolean | 'subFolders' | 'openEditors'>('autoRepositoryDetection');
153+
154+
if (autoRepositoryDetection === false) {
155+
return;
156+
}
157+
151158
this.eventuallyScanPossibleGitRepository(uri.fsPath.replace(/\.git.*$/, ''));
152159
}
153160

0 commit comments

Comments
 (0)