fix(git): disable filter.lfs.required when git-lfs binary is missing - #823
Merged
Conversation
…sing A prior `git lfs install` on an image can leave filter.lfs.required=true in system/global git config even after the git-lfs binary is removed. With it set, disabling the smudge/clean/process filters isn't enough: git still treats the filter as required and aborts checkout with "smudge filter lfs failed" instead of falling back to the pointer stub.
✅ Deploy Preview for devsydev canceled.
|
✅ Deploy Preview for images-devsy-sh canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughGit LFS configuration now marks disabled filters as non-required, while the e2e fixture distinguishes required stale global filters from non-required local filters. ChangesGit LFS filter configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
skevetter
marked this pull request as ready for review
July 30, 2026 23:02
skevetter
enabled auto-merge (squash)
July 30, 2026 23:18
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.
Summary
process/smudge/cleanfilters whengit-lfsisn't installed, but leavesfilter.lfs.requireduntouched.git lfs install(settingfilter.lfs.required=truein system/global git config) and later had thegit-lfsbinary removed, that flag persists. Since a disabled filter still counts as "configured" to git, checkout treats the (expected) filter failure as fatal and aborts withsmudge filter lfs failedinstead of falling back to the LFS pointer stub.filter.lfs.required=falseto the disable-filter args, and updates the e2e LFS test fixture to simulate the stalerequired=trueconfig so this regresses loudly if reintroduced.Summary by CodeRabbit