Commit 54cc32f
Fix shallow clone deepening hanging in CI (#36)
* Fix shallow clone deepening hanging in CI
execSync with stdio: "pipe" created a pipe for stdin, causing git to
hang if a credential helper tried to prompt for input. Additionally,
execSync blocks the event loop, so the global setTimeout timeout could
never fire — leaving no safety net for hanging fetches.
Fix by setting stdin to "ignore" (so git can't block on input) and
adding a 30s timeout directly on execSync (enforced at OS level via
SIGTERM, independent of the event loop).
Fixes LIN-62864
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Log error
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 11302fa commit 54cc32f
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments