Skip to content

Commit

Permalink
Attempt to debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
stwiname committed Dec 10, 2024
1 parent a12ce84 commit 454567a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/controller/init-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ export async function cloneProjectTemplate(
const tempPath = await makeTempDir();
//use sparse-checkout to clone project to temp directory
await git(tempPath).init().addRemote('origin', selectedProject.remote);
await git(tempPath).raw('sparse-checkout', 'set', `${selectedProject.path}`);
await git(tempPath).raw('sparse-checkout', 'set', selectedProject.path);
await git(tempPath).raw('pull', 'origin', 'main');
// Copy content to project path
copySync(path.join(tempPath, `${selectedProject.path}`), projectPath);
copySync(path.join(tempPath, selectedProject.path), projectPath);
// Clean temp folder
fs.rmSync(tempPath, {recursive: true, force: true});
return projectPath;
Expand Down

0 comments on commit 454567a

Please sign in to comment.