mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 11:05:56 +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
|
||||
public void bendContextToNewRepository() throws IOException, GitAPIException {
|
||||
clone = tempFolder.newFolder();
|
||||
Git.init().setBare(true).setDirectory(clone).call();
|
||||
Git.init()
|
||||
.setInitialBranch("master")
|
||||
.setBare(true)
|
||||
.setDirectory(clone)
|
||||
.call();
|
||||
|
||||
GitContext emptyContext = createMirrorContext(clone);
|
||||
SimpleGitWorkingCopyFactory workingCopyFactory =
|
||||
|
||||
Reference in New Issue
Block a user