KEMBAR78
commands/smudge: treat empty pointers as empty files by ttaylorr · Pull Request #1954 · git-lfs/git-lfs · GitHub
Skip to content

Conversation

ttaylorr
Copy link
Contributor

This pull request treats empty pointers as empty objects, and writes them out as such.

Previously, an empty pointer would be treated as malformed. An empty file would get written out, but the file would also be marked as belonging to a malformed pointer.

With this change, LFS counts the number of bytes spooled out to Git. If there was no error in spooling, and the number of bytes written is zero (meaning that we successfully wrote zero bytes with the intent to do so), return a nil error, instead of marking it as a malformed pointer.


/cc @git-lfs/core
/x-ref #1922

@ttaylorr ttaylorr added this to the v2.0.0 milestone Feb 17, 2017
@ttaylorr ttaylorr merged commit c22c48b into master Feb 17, 2017
@ttaylorr ttaylorr deleted the empty-pointers branch February 17, 2017 01:54
@ttaylorr ttaylorr mentioned this pull request Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants