summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2014-12-12 00:59:06 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2014-12-12 13:34:43 +0100
commit35c00a7a73399aafd6d71acb786387a6d558e2b4 (patch)
tree0d3c7e35a05aee6bf3362e8a9faa6fdc9fa9bf6a /org.eclipse.jgit.junit
parent42b20d41271a8cd3e3b87513332f64cdd764e6e6 (diff)
downloadjgit-35c00a7a73399aafd6d71acb786387a6d558e2b4.tar.gz
jgit-35c00a7a73399aafd6d71acb786387a6d558e2b4.zip
Fix LocalDiskRepositoryTestCase to create correct type of repos
In one place LocalDiskRepositoryTestCase was ignoring the specification whether to create a bare or non-bare repository. Fix this and fix also one test which fails now because bare repos don't write reflogs by default. Change-Id: I4bcf8cf97c5b46e2f3919809eaa121a8d0e47010 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
index 053751f8ab..b98db7d187 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
@@ -265,7 +265,7 @@ public abstract class LocalDiskRepositoryTestCase {
File gitdir = createUniqueTestGitDir(bare);
FileRepository db = new FileRepository(gitdir);
assertFalse(gitdir.exists());
- db.create();
+ db.create(bare);
toClose.add(db);
return db;
}