Browse Source

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>
stable-5.5
Jonathan Tan 6 years ago
parent
commit
f2318190bf
  1. 1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

1
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

@ -1876,6 +1876,7 @@ public class UploadPack {
ObjectReader reader = up.getRevWalk().getObjectReader(); ObjectReader reader = up.getRevWalk().getObjectReader();
try (RevWalk walk = new RevWalk(reader)) { try (RevWalk walk = new RevWalk(reader)) {
walk.setRetainBody(false);
// Missing "wants" throw exception here // Missing "wants" throw exception here
List<RevObject> wantsAsObjs = objectIdsToRevObjects(walk, List<RevObject> wantsAsObjs = objectIdsToRevObjects(walk,
notAdvertisedWants); notAdvertisedWants);

Loading…
Cancel
Save