]> source.dussan.org Git - jgit.git/commit
UploadPack: Fix want-is-satisfied test 27/2427/1
authorShawn O. Pearce <spearce@spearce.org>
Sun, 6 Feb 2011 01:49:01 +0000 (17:49 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 6 Feb 2011 09:08:41 +0000 (01:08 -0800)
commita35c793b2d3a1c29a55ee96123109b3c80ab15e3
tree8e4eaf0baaeaa719f9eb01f653335dba2114def4
parent2096c749c30c2420362859383bbdd1e307790569
UploadPack: Fix want-is-satisfied test

okToGiveUpImp() has been missing a ! for a long time.  This loop over
wantAll() is looking for an object where wantSatisfied() returns
false, because there is no common merge base present.  Unfortunately
it was missing a !, causing the loop to break and return false after
at least one want was satisified.

Bug: 301639
Change-Id: Ifdbe0b22c9cd0a9181546d090b4990d792d70c82
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java