Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce2010-06-29 16:30:29 +0000
committerShawn O. Pearce2010-06-29 16:30:29 +0000
commit94228bde22debe6ffeb5a374690f023290fc6fd2 (patch)
treeb61552a0dbc5151ebfd1041fa9a6afe1edd924bd /org.eclipse.jgit.junit/src
parentd6e975f71ba366466f456b9988f1241bef18c3dc (diff)
downloadjgit-94228bde22debe6ffeb5a374690f023290fc6fd2.tar.gz
jgit-94228bde22debe6ffeb5a374690f023290fc6fd2.tar.xz
jgit-94228bde22debe6ffeb5a374690f023290fc6fd2.zip
Use ObjectReader in DirCacheBuilder.addTree
Rather than building a custom reader, have the caller supply us one. Change-Id: Ief2b5a6b1b75f05c8a6bc732a60d4d1041dd8254 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.junit/src')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
index 96b616889c..3c58271257 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
@@ -753,7 +753,8 @@ public class TestRepository<R extends Repository> {
if (parents.isEmpty()) {
DirCacheBuilder b = tree.builder();
parseBody(p);
- b.addTree(new byte[0], DirCacheEntry.STAGE_0, db, p.getTree());
+ b.addTree(new byte[0], DirCacheEntry.STAGE_0, pool
+ .getObjectReader(), p.getTree());
b.finish();
}
parents.add(p);

Back to the top