diff options
author | Jonathan Nieder <jrn@google.com> | 2019-03-07 19:58:35 -0800 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2019-03-07 19:58:35 -0800 |
commit | ee5f449bca7c618ffcdba3d4d24e7f3b6fa9e388 (patch) | |
tree | b35214318a0c359409235d787b22e87171c5b92b | |
parent | a33847b5d9969fa5eefb769f650dcaa6b80457e6 (diff) | |
download | jgit-ee5f449bca7c618ffcdba3d4d24e7f3b6fa9e388.tar.gz jgit-ee5f449bca7c618ffcdba3d4d24e7f3b6fa9e388.zip |
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 <jrn@google.com>
-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 1d0f836619..52c3cdedca 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; |