]> source.dussan.org Git - jgit.git/commitdiff
Pass a DfsRepositoryDescription to InMemoryRepository 70/5370/1
authorDave Borowitz <dborowitz@google.com>
Thu, 15 Mar 2012 22:46:39 +0000 (15:46 -0700)
committerDave Borowitz <dborowitz@google.com>
Thu, 15 Mar 2012 22:46:39 +0000 (15:46 -0700)
This was likely intended originally, but this class had never been
used, so the mistake went unnoticed.

Change-Id: I5e0e9f22ebf707c11d0581511c7a56b182188f77

org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/InMemoryRepository.java

index 966b5182ad064a99f0eaea30f630aca0a336967d..f363fc242cb8e268bb2a31bb98347452470a7118 100644 (file)
@@ -36,13 +36,13 @@ public class InMemoryRepository extends DfsRepository {
         * @param repoDesc
         *             description of the repository.
         */
-       public InMemoryRepository(DfsRepository repoDesc) {
+       public InMemoryRepository(DfsRepositoryDescription repoDesc) {
                super(new DfsRepositoryBuilder<DfsRepositoryBuilder, InMemoryRepository>() {
                        @Override
                        public InMemoryRepository build() throws IOException {
                                throw new UnsupportedOperationException();
                        }
-               });
+               }.setRepositoryDescription(repoDesc));
 
                objdb = new MemObjDatabase(this);
                refdb = new MemRefDatabase();