mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 03:55:51 +01:00
Fix git unit tests on machines which are not using master as init branch (#1854)
This commit is contained in:
@@ -109,7 +109,11 @@ public class GitMirrorCommandTest extends AbstractGitCommandTestBase {
|
|||||||
@Before
|
@Before
|
||||||
public void bendContextToNewRepository() throws IOException, GitAPIException {
|
public void bendContextToNewRepository() throws IOException, GitAPIException {
|
||||||
clone = tempFolder.newFolder();
|
clone = tempFolder.newFolder();
|
||||||
Git.init().setBare(true).setDirectory(clone).call();
|
Git.init()
|
||||||
|
.setInitialBranch("master")
|
||||||
|
.setBare(true)
|
||||||
|
.setDirectory(clone)
|
||||||
|
.call();
|
||||||
|
|
||||||
GitContext emptyContext = createMirrorContext(clone);
|
GitContext emptyContext = createMirrorContext(clone);
|
||||||
SimpleGitWorkingCopyFactory workingCopyFactory =
|
SimpleGitWorkingCopyFactory workingCopyFactory =
|
||||||
|
|||||||
Reference in New Issue
Block a user