| commit | 84d2738ff21cfb28f692cfe11e7f1967b53657fb | [log] [tgz] |
|---|---|---|
| author | Dave Borowitz <dborowitz@google.com> | Fri Jun 21 16:14:30 2013 -0700 |
| committer | Dave Borowitz <dborowitz@google.com> | Fri Jun 21 16:14:30 2013 -0700 |
| tree | 5b46cb34bcdb200d403db0f3b31397fac48bb5ce | |
| parent | fe248d24db1773e9afa7436743ce9a07527d4f22 [diff] |
Don't skip want validation when the client sends no haves Change-Id: I5e80b3befca5cf1dcb06075862d6d48e6491cc0f
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index ffad4c6..e5e04d0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
@@ -819,10 +819,10 @@ else if (multiAck != MultiAck.OFF) 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;