()
| 515 | const DEFAULT_PLUGIN_GIT_TIMEOUT_MS = 120 * 1000 |
| 516 | |
| 517 | function getPluginGitTimeoutMs(): number { |
| 518 | const envValue = process.env.CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS |
| 519 | if (envValue) { |
| 520 | const parsed = parseInt(envValue, 10) |
| 521 | if (!isNaN(parsed) && parsed > 0) { |
| 522 | return parsed |
| 523 | } |
| 524 | } |
| 525 | return DEFAULT_PLUGIN_GIT_TIMEOUT_MS |
| 526 | } |
| 527 | |
| 528 | export async function gitPull( |
| 529 | cwd: string, |
no outgoing calls
no test coverage detected