Community
Participate
Working Groups
See https://www.eclipse.org/forums/index.php/t/1106764/ . If a repo contains already committed files that later were subject to LFS, they must be passed through. SmudgeFilter currently always tries to read files as LFS pointers, and always just closes the original InputStream. That won't work. Example: git add something.tar git commit ... later, maybe much later, the repo is switched to LFS: echo '*.tar filter=lfs diff=lfs merge=lfs -text' >> .gitattributes git add .gitattributes git commit Now try to clone that repo. SmudgeFilter will parse the tar file, not find a LFS pointer, and close the input stream. The file cannot be checked out, or will be checked out empty. SmudgeFilter must reset the original input stream if it doesn't contain an LFS pointer. LFSPointer must check more carefully whether something actually looks like a LFS pointer.
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/175522
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/175522 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=616a88895dfc36fd3c9fea7d010b03e6d2cf8c1d