MCPcopy Create free account
hub / github.com/backnotprop/plannotator / getGitTimeoutMs

Function getGitTimeoutMs

packages/shared/workspace-status.ts:56–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54const workspaceStatusFlights = new Map<string, WorkspaceStatusFlight>();
55
56function 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
61function runGit(cwd: string, args: string[]): GitResult {
62 const result = spawnSync("git", ["--no-optional-locks", "-C", cwd, ...args], {

Callers 1

runGitAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected