diff options
author | Nitzan Gur-Furman <nitzan@google.com> | 2023-11-15 21:04:00 +0100 |
---|---|---|
committer | Nitzan Gur-Furman <nitzan@google.com> | 2023-11-16 09:47:19 +0100 |
commit | 754a1b49224d5a977d4d155118862f50996a8622 (patch) | |
tree | 144fd9db269108c0496f19c86abc185840d865cc /org.eclipse.jgit.packaging/org.eclipse.jgit.target | |
parent | 91c9146224cf2f8c9053cf565fa292c983acaca0 (diff) | |
download | jgit-754a1b49224d5a977d4d155118862f50996a8622.tar.gz jgit-754a1b49224d5a977d4d155118862f50996a8622.zip |
PatchApplier: wrap output's TemporaryBuffer with a CountingOutputStream
The documentation for TemporaryBuffer::length says:
"The length is only accurate after {@link #close()} has been invoked".
However, we need to have the stream open while accessing the length.
This prevents patches on large files to be applied correctly, as the
result get trimmed.
Bug: Google b/309500446
Change-Id: Ic1540f6d0044088f3b46f1fad5f6a28ec254b711
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target')
0 files changed, 0 insertions, 0 deletions