]> source.dussan.org Git - jgit.git/commit
Fix for Iff768422c, use offset 0 when going back to work tree iterator 72/8072/2
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 6 Oct 2012 11:08:16 +0000 (13:08 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 6 Oct 2012 11:08:16 +0000 (13:08 +0200)
commit45edb41a9ed1248964cb4bf0d635f2643406d123
tree2dbd5344d2cd59dc5ea3755b95d940a7207e120f
parent046a497d7774193c019d53fecc64d0a4b2e7d929
Fix for Iff768422c, use offset 0 when going back to work tree iterator

In Iff768422c the offset used for the content id was fixed to use  the
offset that applied to the dircache iterator. Unfortunately the index
for the dircache content id offset stuck for entries that were not in
the index. Few caller probably cared about that, unless it actually
caused an ArrayIndexOutOfBoundsException.

Change-Id: Ic9f0e77c8ea3a0770d88565e94392e76853e3006
org.eclipse.jgit.test/tst/org/eclipse/jgit/treewalk/FileTreeIteratorTest.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java