Fix STA-1292: prevent Windows worktree-create hang (disable interactive credential prompt + timeout create-path git) (#7301)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Brennan Benson
2026-07-04 13:37:06 -07:00
committed by GitHub
co-authored by Orca
parent d7d7067ae1
commit ac8d365296
8 changed files with 187 additions and 25 deletions
+4 -1
View File
@@ -4880,7 +4880,10 @@ describe('OrcaRuntimeService', () => {
['rev-parse', '--path-format=absolute', '--git-common-dir'],
wslGitOptions
)
expect(asyncGitSpy).toHaveBeenCalledWith(['fetch', 'origin'], wslGitOptions)
expect(asyncGitSpy).toHaveBeenCalledWith(['fetch', 'origin'], {
...wslGitOptions,
timeout: 60_000
})
expect(syncGitSpy).toHaveBeenCalledWith(
['rev-list', '--left-right', '--count', 'HEAD...origin/main'],
{ cwd: TEST_WORKTREE_PATH, wslDistro: 'Ubuntu' }