From ee5f449bca7c618ffcdba3d4d24e7f3b6fa9e388 Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Thu, 7 Mar 2019 19:58:35 -0800 Subject: [PATCH] UploadPack: Do not retain commit body when checking wants The commit body contains the commit message, which is not needed for reachability checks. Change-Id: Ie209c3b3f022579942f05b8b5d0625ce26400a5d Signed-off-by: Jonathan Nieder --- org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 1 + 1 file changed, 1 insertion(+) 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 1d0f83661..52c3cdedc 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1863,6 +1863,7 @@ public class UploadPack { ObjectReader reader = up.getRevWalk().getObjectReader(); try (RevWalk walk = new RevWalk(reader)) { + walk.setRetainBody(false); AsyncRevObjectQueue q = walk.parseAny(notAdvertisedWants, true); try { RevObject obj;