()
| 54 | const workspaceStatusFlights = new Map<string, WorkspaceStatusFlight>(); |
| 55 | |
| 56 | function getGitTimeoutMs(): number { |
| 57 | const timeout = Number.parseInt(process.env.PLANNOTATOR_GIT_TIMEOUT_MS ?? "", 10); |
| 58 | return Number.isFinite(timeout) && timeout > 0 ? timeout : DEFAULT_GIT_TIMEOUT_MS; |
| 59 | } |
| 60 | |
| 61 | function runGit(cwd: string, args: string[]): GitResult { |
| 62 | const result = spawnSync("git", ["--no-optional-locks", "-C", cwd, ...args], { |