From 3bbbad38c1e9d1dc1889db3c86b206d8a12cd467 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 6 Aug 2019 13:53:34 +0200 Subject: [PATCH] :lipstick: --- extensions/git/src/commands.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index da1a1bc107b..34652fa9bff 100755 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -450,10 +450,7 @@ export class CommandCenter { return; } - const match = /git\s+clone\s+(.*)/.exec(url); - if (match) { - url = match[1]; - } + url = url.replace(/^\s*git\s+clone\s+/, ''); const config = workspace.getConfiguration('git'); let defaultCloneDirectory = config.get('defaultCloneDirectory') || os.homedir();