]> source.dussan.org Git - jgit.git/commitdiff
UploadPack: Do not retain commit body when checking wants 14/138314/1
authorJonathan Nieder <jrn@google.com>
Fri, 8 Mar 2019 03:58:35 +0000 (19:58 -0800)
committerJonathan Nieder <jrn@google.com>
Fri, 8 Mar 2019 03:58:35 +0000 (19:58 -0800)
The commit body contains the commit message, which is not needed for
reachability checks.

Change-Id: Ie209c3b3f022579942f05b8b5d0625ce26400a5d
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

index 1d0f836619b0388be3280aa43d20b9badbe27f70..52c3cdedcaf550c1baaaa84533ec391094ac97b7 100644 (file)
@@ -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;