diff --git a/apps/pi-extension/server/serverReview.ts b/apps/pi-extension/server/serverReview.ts index 0a71009..68944b3 100644 --- a/apps/pi-extension/server/serverReview.ts +++ b/apps/pi-extension/server/serverReview.ts @@ -126,7 +126,7 @@ export const reviewRuntime: ReviewGitRuntime = { options?: { cwd?: string; timeoutMs?: number }, ): Promise { return new Promise((resolve) => { - const proc = spawn("git", args, { + const proc = spawn("git", ["-c", "core.quotePath=false", ...args], { cwd: options?.cwd, stdio: ["ignore", "pipe", "pipe"], }); diff --git a/packages/server/git.ts b/packages/server/git.ts index 3ceacc4..d6ccbc2 100644 --- a/packages/server/git.ts +++ b/packages/server/git.ts @@ -38,7 +38,7 @@ async function runGit( args: string[], options?: { cwd?: string; timeoutMs?: number }, ): Promise { - const proc = Bun.spawn(["git", ...args], { + const proc = Bun.spawn(["git", "-c", "core.quotePath=false", ...args], { cwd: options?.cwd, stdout: "pipe", stderr: "pipe",