diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 2cf349dca39..da1a1bc107b 100755 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -450,6 +450,11 @@ export class CommandCenter { return; } + const match = /git\s+clone\s+(.*)/.exec(url); + if (match) { + url = match[1]; + } + const config = workspace.getConfiguration('git'); let defaultCloneDirectory = config.get('defaultCloneDirectory') || os.homedir(); defaultCloneDirectory = defaultCloneDirectory.replace(/^~/, os.homedir());