fix: skip LFS smudge during workspace clone - #149
Closed
lishuceo wants to merge 1 commit into
Closed
Conversation
…repos Repos with Git LFS (e.g., UrhoX) fail to clone because the bare cache doesn't contain LFS objects and the local clone can't resolve them. Setting GIT_LFS_SKIP_SMUDGE=1 skips LFS file download during clone, which is fine since Claude only needs source code, not binary assets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 49s —— View job PR Review: fix: skip LFS smudge during workspace clone
✅ Approved — Clean, well-scoped fix. What it does: Adds Review notes:
Minimal, targeted fix with appropriate test coverage. LGTM. |
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
execFileSync的 clone 环境变量中添加GIT_LFS_SKIP_SMUDGE=1,跳过 LFS 文件下载git lfs pull按需拉取Test plan
GIT_LFS_SKIP_SMUDGE=1GIT_LFS_SKIP_SMUDGE=1 git clone ...)🤖 Generated with Claude Code