]> source.dussan.org Git - jgit.git/commit
Use getObjectsDatabase().getDirectory() to find objects 63/963/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 24 Jun 2010 18:32:58 +0000 (11:32 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 26 Jun 2010 01:03:41 +0000 (18:03 -0700)
commit767fd314ada5649f77c18e9f4e9b744261301520
tree1ef4751e17c49b690d4485b14b3984551f6c79dd
parentffe0614d4db653cbcd48c19e9f599fd87cdcfaba
Use getObjectsDatabase().getDirectory() to find objects

Only the ObjectDirectory type of database knows where to find the
objects directory on the local filesystem, so defer to it whenever
we need to know where the objects reside.  Since this is the type
returned by FileRepository's getObjectDatabase() method, we mostly
don't have to do much other than use a slightly longer invocation.

Change-Id: Ie5f58132a6411b56c3acad73646ad169d78a0654
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConcurrentRepackTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/PackWriterTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SampleDataRepositoryTestCase.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/T0003_Basic.java