diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2018-02-19 23:42:46 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-03-07 23:25:22 +0100 |
commit | 7d3040368fa8e00c4dfcbd0b7d2d92768cfc2c7e (patch) | |
tree | 2c5b5372eb0a9e37bc921f66580717821c47e2d3 /org.eclipse.jgit.packaging/org.eclipse.jgit.lfs.feature | |
parent | 0d79bcf151cb20547ac5899b00db5e7b9246a0d1 (diff) | |
download | jgit-7d3040368fa8e00c4dfcbd0b7d2d92768cfc2c7e.tar.gz jgit-7d3040368fa8e00c4dfcbd0b7d2d92768cfc2c7e.zip |
Fix DiffFormatter for diffs against working tree with autocrlf=true
The WorkingTreeSource produced an ObjectLoader that returned
inconsistent sizes: the file size in getSize(), but then a
correctly filtered smaller stream in openStream(). This resulted
either in an IOE "short read of block" or in an EOFException
depending on the resulting filtered size.
Fix this by ensuring that getSize() does return the size of the
filtered stream.
Bug: 530106
Change-Id: I7c7c85036047dc10030ed29c1d5a6c7f34f2bdff
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.lfs.feature')
0 files changed, 0 insertions, 0 deletions