Skip to content

Comments

refactor: use local hardlink clone for snapshot generation#135

Merged
alecthomas merged 1 commit intomainfrom
aat/snapshot-local-clone
Feb 20, 2026
Merged

refactor: use local hardlink clone for snapshot generation#135
alecthomas merged 1 commit intomainfrom
aat/snapshot-local-clone

Conversation

@alecthomas
Copy link
Collaborator

Instead of archiving the mirror bare repo directly, snapshot generation
now clones from the mirror into a temporary working directory first.
Git hardlinks objects for local clones, so there's no disk duplication.
Re-cloning before each snapshot guarantees a clean, compact object store
matching the mirror's repacked state.

Closes #127

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Instead of archiving the mirror bare repo directly, snapshot generation
now clones from the mirror into a temporary working directory first.
Git hardlinks objects for local clones, so there's no disk duplication.
Re-cloning before each snapshot guarantees a clean, compact object store
matching the mirror's repacked state.

Closes #127

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner February 20, 2026 05:01
@alecthomas alecthomas requested review from nssherpa and removed request for a team February 20, 2026 05:01
@alecthomas alecthomas merged commit d049089 into main Feb 20, 2026
5 checks passed
@alecthomas alecthomas deleted the aat/snapshot-local-clone branch February 20, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rework snapshot generation to use local hardlink clone

1 participant