]> Git Repo - pico-vscode.git/commitdiff
Fix #25 - missing quotes around gitExecutable
authorWilliam Vinnicombe <[email protected]>
Sat, 27 Jul 2024 15:53:05 +0000 (16:53 +0100)
committerWilliam Vinnicombe <[email protected]>
Sat, 27 Jul 2024 15:53:27 +0000 (16:53 +0100)
Signed-off-by: William Vinnicombe <[email protected]
src/utils/gitUtil.mts

index 8c16c67a329486b5065d10ce4c80918cfaa4bd5e..18b3b1b9f2444a2aa38b7cc388ff36ebf29d51bc 100644 (file)
@@ -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;
This page took 0.027046 seconds and 4 git commands to generate.