Skip to content

Commit 5c282fa

Browse files
committed
Ensures a repo "path" isn't mistaken for a URL
1 parent 5abb804 commit 5c282fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uris/deepLinks/deepLinkService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { createQuickPickSeparator } from '../../quickpicks/items/common';
2222
import { debug } from '../../system/decorators/log';
2323
import { once } from '../../system/event';
2424
import { Logger } from '../../system/logger';
25-
import { normalizePath } from '../../system/path';
25+
import { maybeUri, normalizePath } from '../../system/path';
2626
import { fromBase64 } from '../../system/string';
2727
import { executeCommand } from '../../system/vscode/command';
2828
import { configuration } from '../../system/vscode/configuration';
@@ -194,7 +194,7 @@ export class DeepLinkService implements Disposable {
194194
isPending?: boolean,
195195
): Promise<void> {
196196
if (repoPath != null && isPending) {
197-
const repoOpenUri = Uri.parse(repoPath);
197+
const repoOpenUri = maybeUri(repoPath) ? Uri.parse(repoPath) : repoPath;
198198
try {
199199
const openRepo = await this.container.git.getOrOpenRepository(repoOpenUri, { detectNested: false });
200200
if (openRepo != null) {

0 commit comments

Comments
 (0)