Browse Source

Pass a DfsRepositoryDescription to InMemoryRepository

This was likely intended originally, but this class had never been
used, so the mistake went unnoticed.

Change-Id: I5e0e9f22ebf707c11d0581511c7a56b182188f77
stable-2.0
Dave Borowitz 13 years ago
parent
commit
9bc26efe9d
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/InMemoryRepository.java

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

@ -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();

Loading…
Cancel
Save