docs(worktrees): explain create fetch maintenance scope

This commit is contained in:
Neil
2026-07-10 00:16:53 -07:00
parent 7a1afb5434
commit 74c45bac7f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -478,6 +478,7 @@ async function refreshRemoteTrackingBaseForWorktreeCreate(
getSshWorktreeCreateBaseFetchKey(repo, base),
getSshWorktreeCreateRemoteQueueKey(repo, base.remote),
() =>
// Why: the exact-base refresh gates create; unrelated repo housekeeping must not extend it.
provider.fetchRemoteTrackingRef(repo.path, base.remote, base.branch, base.ref, {
skipAutoMaintenance: true
})
+1
View File
@@ -14621,6 +14621,7 @@ export class OrcaRuntimeService {
if (this.getFreshFetchCompletedAt(key) !== null) {
return { ok: true }
}
// Why: this exact refresh gates worktree create; ordinary fetches still own maintenance.
return gitExecFileAsync(
[
...GIT_FETCH_SKIP_AUTO_MAINTENANCE_CONFIG_ARGS,