protected function configMergeTest::createGitRepository

7.x configMergeTest.php protected configMergeTest::createGitRepository($dir)
2 calls to configMergeTest::createGitRepository()

File

tests/configMergeTest.php, line 254
Test config-merge, that merges configuration changes from one site to another.

Namespace

Unish

Class

configMergeTest
@group slow @group commands

Code

protected function createGitRepository($dir) {
  unish_file_delete_recursive($dir . '/.git');
  $this->execute("git init && git config user.email 'unish@drush.org' && git config user.name 'Unish' && git add . && git commit -m 'Initial commit.'", CommandUnishTestCase::EXIT_SUCCESS, $dir);
}