]> source.dussan.org Git - jgit.git/commitdiff
Don't skip want validation when the client sends no haves 05/15705/1
authorDave Borowitz <dborowitz@google.com>
Fri, 21 Jun 2013 23:14:30 +0000 (16:14 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 21 Aug 2013 12:44:46 +0000 (14:44 +0200)
Change-Id: I5e80b3befca5cf1dcb06075862d6d48e6491cc0f

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

index 5347eb713cf94ab978acbcc292a2f65aa8e098e4..808cd73df9767271f61fffab6f57600ea5d32acd 100644 (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;