mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - fix repository deduplication logic (#203836)
This commit is contained in:
@@ -788,7 +788,7 @@ export class Model implements IRepositoryResolver, IBranchProtectionProviderRegi
|
||||
// Use the repository real path
|
||||
const repoPathRealPath = await fs.promises.realpath(repoPath, { encoding: 'utf8' });
|
||||
const openRepositoryRealPath = this.openRepositories
|
||||
.find(r => pathEquals(r.repository.rootRealPath ?? '', repoPathRealPath));
|
||||
.find(r => pathEquals(r.repository.rootRealPath ?? r.repository.root, repoPathRealPath));
|
||||
|
||||
return openRepositoryRealPath?.repository;
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user