worktree: every task does a full non-shallow clone with no shared object store #1288

Closed
opened 2026-10-27 13:39:47 +00:00 by sam · 0 comments
Owner

worktree.Manager.createClone runs go-git PlainClone of the whole history into a per-task directory. Measured: archie-core full clone 9s with git CLI (go-git slower), each task worktree ~620 MB on disk; sandbox repo 1.2s. Done when a new task for an already-cloned repository reuses local objects (shared mirror/alternates or git worktree) and pays only a fetch (~0.9s measured).

Notes

Approach: per-repo shared mirror refreshed by fetch; task clones use CloneOptions.Shared (alternates). Shallow rejected: breaks merge-base diff after base moves and go-git shallow push.

Close reason

Closed


Imported from beads archie-core-djvdt · GitHub #1895 · type task · priority P2 · created 2026-10-25 · closed 2026-10-25

worktree.Manager.createClone runs go-git PlainClone of the whole history into a per-task directory. Measured: archie-core full clone 9s with git CLI (go-git slower), each task worktree ~620 MB on disk; sandbox repo 1.2s. Done when a new task for an already-cloned repository reuses local objects (shared mirror/alternates or git worktree) and pays only a fetch (~0.9s measured). ### Notes Approach: per-repo shared mirror refreshed by fetch; task clones use CloneOptions.Shared (alternates). Shallow rejected: breaks merge-base diff after base moves and go-git shallow push. ### Close reason Closed --- _Imported from beads `archie-core-djvdt` · GitHub #1895 · type task · priority P2 · created 2026-10-25 · closed 2026-10-25_
sam added the mediumtask labels 2026-10-27 13:39:47 +00:00
sam self-assigned this 2026-10-27 13:39:47 +00:00
sam closed this issue 2026-10-27 13:39:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1288