Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2014-12-20 08:18:27 +0000
committerMatthias Sohn2014-12-21 23:13:30 +0000
commit41cf113807d67aa2efa4e566699d975ccbfb5776 (patch)
tree9e65812d9677b2b07f4096d3944f508f1ca9572c
parent71fb186c87d01fa4e859f8c233a56f10802bedf5 (diff)
downloadegit-41cf113807d67aa2efa4e566699d975ccbfb5776.tar.gz
egit-41cf113807d67aa2efa4e566699d975ccbfb5776.tar.xz
egit-41cf113807d67aa2efa4e566699d975ccbfb5776.zip
Use appropriate constructor to create bare repository
This patch fixes 32 unstable test failures. Bug: 455812 Change-Id: I8fc6f3a7ba12831850d747ab5ff9bf6e8324e15a Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/push/PushBranchWizardTest.java2
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/SampleTestRepository.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
index c1a4a7d5f1..75e1d5d942 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java
@@ -309,7 +309,7 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase {
Repository myRepository = lookupRepository(repositoryDir);
File gitDir = new File(testDirectory, REPO2);
Repository myRemoteRepository = FileRepositoryBuilder.create(gitDir);
- myRemoteRepository.create();
+ myRemoteRepository.create(true);
// double-check that this is bare
assertTrue(myRemoteRepository.isBare());
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/push/PushBranchWizardTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/push/PushBranchWizardTest.java
index b22883988c..a01f75472c 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/push/PushBranchWizardTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/internal/push/PushBranchWizardTest.java
@@ -238,7 +238,7 @@ public class PushBranchWizardTest extends LocalRepositoryTestCase {
private Repository createRemoteRepository() throws IOException {
File gitDir = new File(getTestDirectory(), "pushbranchremote");
Repository repo = FileRepositoryBuilder.create(gitDir);
- repo.create();
+ repo.create(true);
assertTrue(repo.isBare());
return repo;
}
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/SampleTestRepository.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/SampleTestRepository.java
index 5dd41466b4..eb7f4c101d 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/SampleTestRepository.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/wizards/clone/SampleTestRepository.java
@@ -109,7 +109,7 @@ public class SampleTestRepository {
File gitdir = new File(trash, gitdirName).getCanonicalFile();
Repository db = new RepositoryBuilder().setGitDir(gitdir).build();
assertFalse(gitdir.exists());
- db.create();
+ db.create(true);
return new TestRepository<Repository>(db);
}

Back to the top