fix(git): cache unsupported capabilities per host (#8109)

* fix(git): cache unsupported capabilities per host

Old Git worktree, ref-search, and merge-tree fallbacks retried unsupported flags on recurring operations, flooding subprocess traces. Centralize capability probing per native, WSL, and SSH execution host, coalesce concurrent probes, and retry periodically for in-place Git upgrades.

* fix(git): recognize real old-Git merge-tree rejection

* test(git): enforce real binary compatibility matrix

* fix(ci): preserve Git compatibility test ownership

* fix(git): retain supported capability state
This commit is contained in:
Neil
2026-07-10 18:19:36 -07:00
committed by GitHub
parent 73e082b577
commit 533992bdda
38 changed files with 1467 additions and 382 deletions
+4 -1
View File
@@ -22258,19 +22258,22 @@ describe('OrcaRuntimeService', () => {
const runtime = new OrcaRuntimeService(runtimeStore as never)
const result = await runtime.searchRepoRefs('id:remote-repo', '', 1)
const repeatedResult = await runtime.searchRepoRefs('id:remote-repo', '', 1)
expect(result).toEqual({
refs: ['origin/main'],
refDetails: [{ refName: 'origin/main', localBranchName: 'main' }],
truncated: true
})
expect(repeatedResult).toEqual(result)
const forEachRefCalls = provider.exec.mock.calls.filter(
(call) => (call[0] as string[])[0] === 'for-each-ref'
)
expect(forEachRefCalls).toHaveLength(2)
expect(forEachRefCalls).toHaveLength(3)
expect(forEachRefCalls[0][0]).toContain('--exclude=refs/remotes/**/HEAD')
expect(forEachRefCalls[1][0]).not.toContain('--exclude=refs/remotes/**/HEAD')
expect(forEachRefCalls[1][0]).toContain('--count=108')
expect(forEachRefCalls[2][0]).not.toContain('--exclude=refs/remotes/**/HEAD')
})
it('resolves SSH worktrees when manually updating lineage', async () => {