Merge pull request #9378 from studioromeo/fix-git-non-master-default-failing-tests
Fix running tests with non standard default branchpull/9384/head
commit
097ef425f5
|
@ -115,7 +115,7 @@ class ArchiveManagerTest extends ArchiverTest
|
|||
chdir($this->testDir);
|
||||
|
||||
$output = null;
|
||||
$result = $this->process->execute('git init -q', $output, $this->testDir);
|
||||
$result = $this->process->execute('git init -q -b master', $output, $this->testDir);
|
||||
if ($result > 0) {
|
||||
chdir($currentWorkDir);
|
||||
throw new \RuntimeException('Could not init: '.$this->process->getErrorOutput());
|
||||
|
|
|
@ -58,7 +58,7 @@ class VcsRepositoryTest extends TestCase
|
|||
}
|
||||
};
|
||||
|
||||
$exec('git init');
|
||||
$exec('git init -q -b master');
|
||||
$exec('git config user.email composertest@example.org');
|
||||
$exec('git config user.name ComposerTest');
|
||||
$exec('git config commit.gpgsign false');
|
||||
|
|
Loading…
Reference in New Issue