浏览代码

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 年前
父节点
当前提交
212fb3071c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 查看文件

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

正在加载...
取消
保存