]> source.dussan.org Git - jgit.git/commit
Fix ReadTreeTests to not rely on cached index 52/1352/1
authorChristian Halstrick <christian.halstrick@sap.com>
Fri, 20 Aug 2010 08:15:53 +0000 (10:15 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Fri, 20 Aug 2010 08:23:03 +0000 (10:23 +0200)
commit9ac29d0e912b999526184860d56611a9ad3f692d
tree546f994fcc308e764fe95fdfcc5f1d9749fe6743
parent3820b0281ab5abff0123d56e0886a4830ee3d424
Fix ReadTreeTests to not rely on cached index

ReadTreeTests relied on Repository.getIndex() which on
platforms which coarse FileSystemTimers failed to detect
index modifications. By explicitly reloading and writing
the index this problem is solved.

Change-Id: I0a98babfc2068a3b6b7d2257834988e1154f5b26
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ReadTreeTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/WorkDirCheckout_ReadTreeTest.java