fix(runner): set GIT_TERMINAL_PROMPT=0 for non-interactive clone
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-08 15:27:10 +01:00
parent 2bd388a5e2
commit b0634b829c

View File

@@ -234,7 +234,7 @@ const server = createServer(async (req, res) => {
try {
// Clean existing clone
execSync(`rm -rf ${svcSourcePath}/*`, { timeout: 10_000 });
execSync(`git clone --depth 1 ${gitBranch ? `--branch ${gitBranch}` : ""} ${gitUrl} .`, { cwd: svcSourcePath, timeout: 120_000, stdio: "pipe" });
execSync(`git clone --depth 1 ${gitBranch ? `--branch ${gitBranch}` : ""} ${gitUrl} .`, { cwd: svcSourcePath, timeout: 120_000, stdio: "pipe", env: { ...process.env, GIT_TERMINAL_PROMPT: "0" } });
console.log(`[runner] git clone complete: ${gitUrl} -> ${svcSourcePath}`);
} catch (e) {
return json(res, 500, { error: `git clone failed: ${e.message}` });