Browse Source

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

Change-Id: I5e80b3befca5cf1dcb06075862d6d48e6491cc0f
tags/v3.0.2.201309041250-rc2
Dave Borowitz 11 years ago
parent
commit
bbea37a9e3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java View File

@@ -786,10 +786,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