Merge pull request #563 from pikasTech/fix/git-mirror-sync-retry

fix(git-mirror): sync transient 也执行可见退避
This commit is contained in:
Lyon
2026-06-21 11:47:58 +08:00
committed by GitHub
+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;