summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorGustaf Lundh2013-02-25 12:24:16 (EST)
committer Gustaf Lundh2013-02-25 12:30:03 (EST)
commit212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2 (patch)
tree013e38e30d908f785ade9fd186788a1baeaaf7b3
parent9613b04d8143c74e729acda414e6392078297d33 (diff)
downloadjgit-212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2.zip
jgit-212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2.tar.gz
jgit-212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2.tar.bz2
Fix while boundries in DateRevQueue.add()refs/changes/26/10626/1
In add(), "low" will never equals "first". This fact should be reflected in the code. Change-Id: I5cab51374e67bd2d3301e5d9dac47c4259b5e562
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java
index 2c46f8e..0802bfa 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java
@@ -106,7 +106,7 @@ public class DateRevQueue extends AbstractRevQueue {
}
}
low = Math.min(low, high);
- while (low >= first && when == index[low].commit.commitTime)
+ while (low > first && when == index[low].commit.commitTime)
--low;
q = index[low];
}