mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
@@ -392,7 +392,18 @@ export class Git {
|
||||
const folderPath = path.join(parentPath, folderName);
|
||||
|
||||
await mkdirp(parentPath);
|
||||
await this.exec(parentPath, ['clone', url, folderPath], { cancellationToken });
|
||||
|
||||
try {
|
||||
await this.exec(parentPath, ['clone', url, folderPath], { cancellationToken });
|
||||
} catch (err) {
|
||||
if (err.stderr) {
|
||||
err.stderr = err.stderr.replace(/^Cloning.+$/m, '').trim();
|
||||
err.stderr = err.stderr.replace(/^ERROR:\s+/, '').trim();
|
||||
}
|
||||
|
||||
throw err;
|
||||
}
|
||||
|
||||
return folderPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user