Browse Source

Merge "Disable PackParser EOF check if more data expected"

stable-2.1
Shawn Pearce 13 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
2d1124b89b
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java

3
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);

Loading…
Cancel
Save