Repository navigation
feat: transfer padded Git LFS pointers and skip size-0 - #38
Merged
Merged
Conversation
Oversized (>=1024-byte) spec-v1 pointers are now decoded from their first 1024 bytes and transferred through a materialized canonical pointer plus git lfs fetch/push --object-id, because the git-lfs scanner rejects blobs at or above 1024 bytes. A size-0 pointer is treated as an empty object (git-lfs stores nothing) and copied as an ordinary blob. Closes #5
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.
What
Completes Git LFS pointer support (closes #5):
git lfs fetch/push --object-idinstead.size 0pointers are treated as empty objects: git-lfs stores nothing for them, so the pointer blob is copied as an ordinary file with no LFS transfer.Why
The classifier already mirrored git-lfs 3.8.1's decoder for the common cases. These two edge cases — padded pointers and textual size-0 pointers — were the last ones the run still blocked, leaving #5 open.
How tested
gofmt -l .andgo vet ./...clean;GOOS=windows go vet ./...clean.go test -race -count=1 ./...— 156 passed.go test -race -tags=lfsintegration -count=1 ./...— 163 passed (git-lfs 3.8.1), including the newTestLFSIntegrationOversizedPointerend-to-end case.TestLFSClassifyBlobAgainstGitLFS): 26/26.windows/amd64,windows/arm64,plan9/amd64OK.git diff --checkclean.Closes #5