Git clone fix to use character set in regex

This commit is contained in:
Darrien Singleton
2019-05-29 06:35:02 -04:00
parent a3081451e9
commit fdb1c37b06

View File

@@ -339,6 +339,7 @@ export class Git {
async clone(url: string, parentPath: string, cancellationToken?: CancellationToken): Promise<string> {
let baseFolderName = path.win32.basename(decodeURI(url), '.git') || 'repository';
//baseFolderName = decodeURI(url).replace(/^.*[\/\\]/, '').replace(/\.git$/, '') || 'repository';
let folderName = baseFolderName;
let folderPath = path.join(parentPath, folderName);
let count = 1;