Skip to content

Commit

Permalink
Merge pull request #410 from 10up/fix-project-init-path
Browse files Browse the repository at this point in the history
Add quotes to path to prevent space breakage
  • Loading branch information
tlovett1 authored Jul 3, 2024
2 parents 36d0f47 + 868ffdc commit 6da5e22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/great-plants-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"10up-toolkit": minor
---

Fixing git clone path inside project command to support paths with spaces.
2 changes: 1 addition & 1 deletion packages/toolkit/scripts/project/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const run = async () => {
process.exit(1);
}

execSync(`git clone ${template} ${initPath}`);
execSync(`git clone ${template} '${initPath}'`);
fs.rmdirSync(path.join(initPath, '.git'), { recursive: true });
}

Expand Down

0 comments on commit 6da5e22

Please sign in to comment.