Skip to content

Commit 09d1b10

Browse files
authored
Remove .git after cloning start code (#9)
1 parent 0c0a638 commit 09d1b10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cli/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,13 @@ async function cli(args: CommandLineArgs): Promise<Options> {
295295
return Promise.reject(new Error("Git clone failed. Exiting..."));
296296
}
297297

298+
console.log(chalk.green.bold("Removing .git ..."));
299+
const removeGit = shell.exec("rm -rf starter-code-v2/.git");
300+
301+
if (removeGit.code !== 0) {
302+
return Promise.reject(new Error("Remove .git failed. Exiting..."));
303+
}
304+
298305
return appOptions;
299306
}
300307

0 commit comments

Comments
 (0)