Skip to content

Commit 8d02db4

Browse files
authored
GitProtocolHandler - update supported schemes based on the platform (microsoft#208730)
1 parent 81d996c commit 8d02db4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

extensions/git/src/protocolHandler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { UriHandler, Uri, window, Disposable, commands, LogOutputChannel, l10n } from 'vscode';
7-
import { dispose } from './util';
7+
import { dispose, isWindows } from './util';
88
import * as querystring from 'querystring';
99

10-
const schemes = new Set(['file', 'git', 'http', 'https', 'ssh']);
10+
const schemes = isWindows ?
11+
new Set(['git', 'http', 'https', 'ssh']) :
12+
new Set(['file', 'git', 'http', 'https', 'ssh']);
13+
1114
const refRegEx = /^$|[~\^:\\\*\s\[\]]|^-|^\.|\/\.|\.\.|\.lock\/|\.lock$|\/$|\.$/;
1215

1316
export class GitProtocolHandler implements UriHandler {

0 commit comments

Comments
 (0)