Skip to content

Commit

Permalink
Fix #25 - missing quotes around gitExecutable
Browse files Browse the repository at this point in the history
Signed-off-by: William Vinnicombe <[email protected]
  • Loading branch information
will-v-pi committed Jul 27, 2024
1 parent 1012fb6 commit ca4c317
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/gitUtil.mts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ export async function sparseCheckout(
): Promise<boolean> {
try {
await execAsync(
`cd "${repoDirectory}" && ` +
`${gitExecutable} sparse-checkout add ${checkoutPath}`
`cd "${repoDirectory}" && ${
process.env.ComSpec === "powershell.exe" ? "&" : ""
}"${gitExecutable}" sparse-checkout add ${checkoutPath}`
);

return true;
Expand Down

0 comments on commit ca4c317

Please sign in to comment.