diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2019-05-20 16:22:31 -0700 |
---|---|---|
committer | Jonathan Tan <jonathantanmy@google.com> | 2019-05-20 16:22:31 -0700 |
commit | f2318190bf15bed1c360b815784da15b6fdf6303 (patch) | |
tree | 835146d57e3ceb9ce371006ba89d59bc68caece3 /org.eclipse.jgit | |
parent | 7121fa6fecc1b2fdf64792516a785fe0bf0eaa92 (diff) | |
download | jgit-f2318190bf15bed1c360b815784da15b6fdf6303.tar.gz jgit-f2318190bf15bed1c360b815784da15b6fdf6303.zip |
UploadPack: restore inadvertently deleted line
In 7b96bd812e ("UploadPack: Use reachability checker to validate
non-advertised wants", 2019-05-16), a "walk.setRetainBody(false);"
statement was inadvertently deleted. (An earlier version of this commit
had this line in another part of the code and a review comment suggested
to move it back here; the line was then deleted from the other part of
the code but not readded.) Restore this line.
Change-Id: I96ff6106ba9e4eef429388c83e898b3363295f69
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index dff0f9c29a..3ed9886c45 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1876,6 +1876,7 @@ public class UploadPack { ObjectReader reader = up.getRevWalk().getObjectReader(); try (RevWalk walk = new RevWalk(reader)) { + walk.setRetainBody(false); // Missing "wants" throw exception here List<RevObject> wantsAsObjs = objectIdsToRevObjects(walk, notAdvertisedWants); |