diff --git a/src/uris/deepLinks/deepLinkService.ts b/src/uris/deepLinks/deepLinkService.ts index d59c710..0562aa8 100644 --- a/src/uris/deepLinks/deepLinkService.ts +++ b/src/uris/deepLinks/deepLinkService.ts @@ -478,8 +478,22 @@ export class DeepLinkService implements Disposable { remoteUrl: remoteUrl, }); if (matchingLocalRepoPaths.length > 0) { - action = DeepLinkServiceAction.RepoMatchedInLocalMapping; - break; + for (const repo of this.container.git.repositories) { + if ( + matchingLocalRepoPaths.some( + p => normalizePath(repo.path.toLowerCase()) === normalizePath(p.toLowerCase()), + ) + ) { + this._context.repo = repo; + action = DeepLinkServiceAction.RepoMatched; + break; + } + } + + if (this._context.repo == null) { + action = DeepLinkServiceAction.RepoMatchedInLocalMapping; + break; + } } }