Repository navigation
fix(cli): make lfsx gc fetch every ref and refuse clones that cannot see them - #652
Merged
Merged
Conversation
BryanFRD
enabled auto-merge (squash)
October 16, 2026 11:16
BryanFRD
force-pushed
the
fix/gc-refs-safety
branch
from
October 16, 2026 11:26
d1f6396 to
18d2029
Compare
Contributor
There was a problem hiding this comment.
The .lfsconfig blocker is fixed in 18d2029. Nothing else blocking.
BryanFRD
disabled auto-merge
October 16, 2026 11:35
BryanFRD
force-pushed
the
fix/gc-refs-safety
branch
from
October 16, 2026 11:35
18d2029 to
95ecfb0
Compare
Co-authored-by: ferrfleet-interne[bot] <342363332+ferrfleet-interne[bot]@users.noreply.github.com>
BryanFRD
enabled auto-merge (squash)
October 16, 2026 11:39
Contributor
There was a problem hiding this comment.
8958f5a applies the LFSX_TOKEN doc nit. It only touches docs, and nothing is outstanding.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #599
lfsx gcbuilt its keep list from whatever the local clone happened to hold. Now it:originfirstrefs/pull/*andrefs/merge-requests/*intorefs/lfsx/by default,--no-review-refsopts outremote.origin.fetchis not a wildcard overrefs/heads/*--urland--repofromgit config lfs.urlwhen not given (--url/LFSX_URLis now optional forgconly), and refuses a mismatch with the cloneBehaviour change on a destructive command: runs that used to proceed now refuse (single-branch clone,
--url/--reponot matchinglfs.url), andgcnow runsgit fetchagainstorigin. Not breaking for valid setups, so no!.docs/reclaiming-space.mdgets the scheduled CI recipe (admin PAT passed asLFSX_TOKEN).