Browse Source

Don't skip want validation when the client sends no haves

Change-Id: I5e80b3befca5cf1dcb06075862d6d48e6491cc0f
stable-3.1
Dave Borowitz 12 years ago
parent
commit
84d2738ff2
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

4
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

@ -819,10 +819,10 @@ public class UploadPack {
private ObjectId processHaveLines(List<ObjectId> peerHas, ObjectId last)
throws IOException {
preUploadHook.onBeginNegotiateRound(this, wantIds, peerHas.size());
if (peerHas.isEmpty())
return last;
if (wantAll.isEmpty() && !wantIds.isEmpty())
parseWants();
if (peerHas.isEmpty())
return last;
sentReady = false;
int haveCnt = 0;

Loading…
Cancel
Save