Fix git problems with spaces

This commit is contained in:
Scott Craig
2018-10-10 20:11:00 -04:00
parent 7beb02d31e
commit 1db0f5271d

View File

@@ -347,7 +347,7 @@ export class Git {
await mkdirp(parentPath);
try {
await this.exec(parentPath, ['clone', url, folderPath], { cancellationToken });
await this.exec(parentPath, ['clone', url.includes(' ') ? encodeURI(url) : url, folderPath], { cancellationToken });
} catch (err) {
if (err.stderr) {
err.stderr = err.stderr.replace(/^Cloning.+$/m, '').trim();