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