Browse Source

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
stable-2.1
Ian Wetherbee 13 years ago
parent
commit
94f67a9cdc
  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