diff options
author | Gustaf Lundh <gustaf.lundh@sonymobile.com> | 2013-02-25 18:24:16 +0100 |
---|---|---|
committer | Gustaf Lundh <gustaf.lundh@sonymobile.com> | 2013-02-25 18:30:03 +0100 |
commit | 212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2 (patch) | |
tree | 013e38e30d908f785ade9fd186788a1baeaaf7b3 /org.eclipse.jgit/src/org/eclipse/jgit/revwalk | |
parent | 9613b04d8143c74e729acda414e6392078297d33 (diff) | |
download | jgit-212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2.tar.gz jgit-212fb3071cdaa08cfe8bf0243b3acd1fe23f1fa2.zip |
Fix while boundries in DateRevQueue.add()
In add(), "low" will never equals "first". This fact
should be reflected in the code.
Change-Id: I5cab51374e67bd2d3301e5d9dac47c4259b5e562
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/revwalk')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java | 2 |
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 2c46f8eb47..0802bfafde 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]; } |