Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHector Caballero2017-11-04 11:37:39 +0000
committerHector Caballero2017-11-14 15:08:42 +0000
commit4334b27d3cf4610b5c99bb29897cdfa785b06474 (patch)
tree3b8250d316e77d35686c9db8aa0f24a1f4402586 /org.eclipse.jgit.junit
parent178c5d2f0e94402638b521f6284a6c99149bf6b4 (diff)
downloadjgit-4334b27d3cf4610b5c99bb29897cdfa785b06474.tar.gz
jgit-4334b27d3cf4610b5c99bb29897cdfa785b06474.tar.xz
jgit-4334b27d3cf4610b5c99bb29897cdfa785b06474.zip
ObjectDirectory: Add pack directory getter
So far, in order to get the pack directory it was necessary to resolve it from the object directory. This resolution is already done when creating the object directory, so simplify the call by just adding a getter to the pack directory. Change-Id: I69e783141dc6739024e8b3d5acc30843edd651a7 Signed-off-by: Hector Caballero <hector.caballero@ericsson.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java2
1 files changed, 1 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 d1358ee2a5..5d21e3d85c 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
@@ -912,7 +912,7 @@ public class TestRepository<R extends Repository> {
}
private static File nameFor(ObjectDirectory odb, ObjectId name, String t) {
- File packdir = new File(odb.getDirectory(), "pack");
+ File packdir = odb.getPackDirectory();
return new File(packdir, "pack-" + name.name() + t);
}

Back to the top