Skip to content

Use shared clone for checkouts, dissociate on bender clone#308

Open
micprog wants to merge 1 commit into
masterfrom
shared-git
Open

Use shared clone for checkouts, dissociate on bender clone#308
micprog wants to merge 1 commit into
masterfrom
shared-git

Conversation

@micprog
Copy link
Copy Markdown
Member

@micprog micprog commented May 29, 2026

Clone git checkouts with --shared so they borrow objects from the bare git database via alternates instead of copying the full object store, making checkouts faster and smaller on disk.

Since the resulting checkout is no longer self-contained, bender clone now repacks the copied working directory (git repack -a -d) and removes the alternates link so the cloned-out repository is standalone.

Clone git checkouts with `--shared` so they borrow objects from the bare
git database via alternates instead of copying the full object store,
making checkouts faster and smaller on disk.

Since the resulting checkout is no longer self-contained, `bender clone`
now repacks the copied working directory (`git repack -a -d`) and removes
the alternates link so the cloned-out repository is standalone.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@micprog micprog requested a review from fischeti May 29, 2026 16:54
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.

1 participant