fix(git-mirror): retry sync transient failures

This commit is contained in:
Codex
2026-06-21 03:46:41 +00:00
parent 0858e93953
commit 2325dd4220
+1 -1
View File
@@ -2852,7 +2852,7 @@ function nodeRuntimeGitMirrorRun(scoped: ReturnType<typeof parseNodeScopedDelega
if (!scoped.confirm && !scoped.dryRun) throw new Error(`git-mirror ${scoped.action} requires --dry-run or --confirm`);
const spec = scoped.spec;
const mirror = nodeRuntimeGitMirrorTarget(spec);
const retryMaxAttempts = !scoped.dryRun && scoped.action === "flush" ? 5 : 1;
const retryMaxAttempts = !scoped.dryRun && (scoped.action === "sync" || scoped.action === "flush") ? 5 : 1;
const attempts: Record<string, unknown>[] = [];
let finalAttempt: {
attempt: number;