Skip to content
Snippets Groups Projects
Commit 705d2d17 authored by michael.minelli's avatar michael.minelli
Browse files

Merge branch 'remove-spaces-in-clone-folders' into v4.0.0

parents 4349c8bd d4387421
Branches
Tags
No related merge requests found
Pipeline #31585 passed
......@@ -87,7 +87,7 @@ class ExerciseCreateCommand extends CommanderCommand {
if ( options.clone ) {
console.log(TextStyle.BLOCK('Please wait while we are cloning the repository...'));
await GitlabManager.cloneRepository(options.clone, this.exercise.gitlabCreationInfo.ssh_url_to_repo, `DojoExercise - ${ this.exercise.assignmentName }`, true, 0);
await GitlabManager.cloneRepository(options.clone, this.exercise.gitlabCreationInfo.ssh_url_to_repo, `DojoExercise_${ this.exercise.assignmentName }`, true, 0);
}
}
......
......@@ -191,7 +191,7 @@ class GitlabManager extends SharedGitlabManager {
try {
await new Promise<void>((resolve, reject) => {
const gitClone = spawn(`git clone ${ repositorySshUrl } "${ folderName ?? '' }"`, {
const gitClone = spawn(`git clone ${ repositorySshUrl } "${ folderName?.replace(' ', '_') ?? '' }"`, {
cwd : path,
shell: true
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment