Repository navigation
Do not delete zero-sized file from LFS storage - #3864
Conversation
Because it: 1. Doesn't add any value 2. Introduces a source of race conditions to download logic when multiple git-lfs instances share LFS storage 3. Forces git-lfs to oscillate between two strange states when empty file is downloaded from LFS server. See git-lfs#3863
bk2204
left a comment
There was a problem hiding this comment.
This seems like a fine workaround for the problem. Just be aware that we'll likely reject these pointer files in a future release, since we know that pointer files that don't round-trip cause Git to randomly show files as modified.
|
Rejecting files will force us to rewrite history. This is much worse than marking files as modified. There are numerous scenarios that trigger marking files as modified, most trivial one is changing |
|
Why would history rewrite be required for anything other than checking out older commits with the |
|
Exactly for checking out old commits. I suggest continuing discussion in #3865. It aims at rejecting much more stuff than just zero-sized LFS pointer. |
Because it: