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>
This commit is contained in:
parent
a33847b5d9
commit
ee5f449bca
|
@ -1863,6 +1863,7 @@ private static void checkNotAdvertisedWants(UploadPack up,
|
|||
|
||||
ObjectReader reader = up.getRevWalk().getObjectReader();
|
||||
try (RevWalk walk = new RevWalk(reader)) {
|
||||
walk.setRetainBody(false);
|
||||
AsyncRevObjectQueue q = walk.parseAny(notAdvertisedWants, true);
|
||||
try {
|
||||
RevObject obj;
|
||||
|
|
Loading…
Reference in New Issue