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:
@@ -32,6 +32,8 @@ vi.mock('fs/promises', async () => {
|
||||
return { ...actual, stat: statMock }
|
||||
})
|
||||
|
||||
import { clearGitCapabilityStateForTests } from './git-capability-state'
|
||||
|
||||
import {
|
||||
addSparseWorktree,
|
||||
assertWorktreeCleanForRemoval,
|
||||
@@ -40,6 +42,10 @@ import {
|
||||
removeWorktree
|
||||
} from './worktree'
|
||||
|
||||
beforeEach(() => {
|
||||
clearGitCapabilityStateForTests()
|
||||
})
|
||||
|
||||
type MockResult = {
|
||||
error?: Error
|
||||
stdout?: string
|
||||
|
||||
Reference in New Issue
Block a user