Git - fix repository deduplication logic (#203836)

This commit is contained in:
Ladislau Szomoru
2024-01-30 21:54:36 +01:00
committed by GitHub
parent 531cc0ee62
commit dd2038279d
+1 -1
View File
@@ -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) {