Browse Source

Fix while boundries in DateRevQueue.add()

In add(), "low" will never equals "first". This fact
should be reflected in the code.

Change-Id: I5cab51374e67bd2d3301e5d9dac47c4259b5e562
tags/v3.0.0.201305080800-m7
Gustaf Lundh 11 years ago
parent
commit
212fb3071c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DateRevQueue.java View File

@@ -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];
}

Loading…
Cancel
Save