Fix git submodule path cache retention (#7687)

This commit is contained in:
Neil
2026-07-11 01:30:19 -07:00
committed by GitHub
parent d912482752
commit acb35ee649
18 changed files with 807 additions and 112 deletions
+9 -6
View File
@@ -53,6 +53,7 @@ import {
buildAgentPromptPasteBytes
} from '../../shared/agent-prompt-injection'
import { gitExecFileAsync, gitSpawn } from '../git/runner'
import { runWithGitReadCacheInvalidation } from '../git/status'
import {
cleanupClaimedCloneTarget,
claimCloneTarget,
@@ -11470,12 +11471,14 @@ export class OrcaRuntimeService {
try {
await previous
return await this.cloneRepoAfterPathLock(
trimmedUrl,
trimmedDestination,
clonePath,
clonePathKey,
executionHostId
return await runWithGitReadCacheInvalidation(() =>
this.cloneRepoAfterPathLock(
trimmedUrl,
trimmedDestination,
clonePath,
clonePathKey,
executionHostId
)
)
} finally {
release()