diff --git a/apps/server/src/git/Layers/GitHubCli.ts b/apps/server/src/git/Layers/GitHubCli.ts index 280679e337..9ac3c99ed1 100644 --- a/apps/server/src/git/Layers/GitHubCli.ts +++ b/apps/server/src/git/Layers/GitHubCli.ts @@ -168,6 +168,7 @@ const makeGitHubCli = Effect.sync(() => { runProcess("gh", input.args, { cwd: input.cwd, timeoutMs: input.timeoutMs ?? DEFAULT_TIMEOUT_MS, + shell: false, }), catch: (error) => normalizeGitHubCliError("execute", error), }); diff --git a/apps/server/src/processRunner.ts b/apps/server/src/processRunner.ts index 5402612887..cb5881cef0 100644 --- a/apps/server/src/processRunner.ts +++ b/apps/server/src/processRunner.ts @@ -8,6 +8,7 @@ export interface ProcessRunOptions { allowNonZeroExit?: boolean | undefined; maxBufferBytes?: number | undefined; outputMode?: "error" | "truncate" | undefined; + shell?: boolean | undefined; } export interface ProcessRunResult { @@ -139,7 +140,7 @@ export async function runProcess( cwd: options.cwd, env: options.env, stdio: "pipe", - shell: process.platform === "win32", + shell: options.shell ?? process.platform === "win32", }); let stdout = "";