This commit is contained in:
Joao Moreno
2017-07-03 17:28:33 +02:00
parent 81e1e9b8db
commit ac78ebd870

View File

@@ -329,7 +329,7 @@ export class Git {
}
async clone(url: string, parentPath: string): Promise<string> {
const folderName = url.replace(/^.*\//, '').replace(/\.git$/, '') || 'repository';
const folderName = decodeURI(url).replace(/^.*\//, '').replace(/\.git$/, '') || 'repository';
const folderPath = path.join(parentPath, folderName);
await mkdirp(parentPath);