From 94f67a9cdc4a0855cec0d45dd77f703973893e9a Mon Sep 17 00:00:00 2001 From: Ian Wetherbee Date: Tue, 26 Jun 2012 16:42:09 -0700 Subject: [PATCH] Disable PackParser EOF check if more data expected The PackParser EOF check is incompatible with the expect data after pack footer flag, so turn off the EOF check if the expecting data flag is true. Change-Id: I697ebd9e1d1eed765d00aecaef955cf978cfd0b9 --- .../src/org/eclipse/jgit/transport/BaseReceivePack.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java index 461f9333dd..12ad733b0f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java @@ -924,7 +924,8 @@ public abstract class BaseReceivePack { parser.setAllowThin(true); parser.setNeedNewObjectIds(checkReferencedIsReachable); parser.setNeedBaseObjectIds(checkReferencedIsReachable); - parser.setCheckEofAfterPackFooter(!biDirectionalPipe); + parser.setCheckEofAfterPackFooter(!biDirectionalPipe + && !isExpectDataAfterPackFooter()); parser.setExpectDataAfterPackFooter(isExpectDataAfterPackFooter()); parser.setObjectChecking(isCheckReceivedObjects()); parser.setLockMessage(lockMsg); -- 2.39.5