$confirm_versionless_source_theme=newConfirmationQuestion(sprintf('The source theme %s does not have a version specified. This makes tracking changes in the source theme difficult. Are you sure you want to continue?',$source_theme->getName()));
$io->error(sprintf('The source theme %s has a development version number (%s). Determining a specific commit is not possible because git is not installed. Either install git or use a tagged release to generate a theme.',$source_theme->getName(),$source_version));
return1;
}
// Get the git commit for the source theme.
$git_get_commit=Process::fromShellCommandline("git rev-list --max-count=1 --abbrev-commit HEAD -C $source");
$git_get_commit->run();
if($git_get_commit->getOutput()===''){
$confirm_packaged_dev_release=newConfirmationQuestion(sprintf('The source theme %s has a development version number (%s). Because it is not a git checkout, a specific commit could not be identified. This makes tracking changes in the source theme difficult. Are you sure you want to continue?',$source_theme->getName(),$source_version));
$this->assertEquals("The source theme starterkit_theme has a development version number (7.x-dev). Because it is not a git checkout, a specific commit could not be identified. This makes tracking changes in the source theme difficult. Are you sure you want to continue? (yes/no) [yes]:\n > Theme generated successfully to themes/test_custom_theme",trim($process->getOutput()),$process->getErrorOutput());
$this->assertEquals("[ERROR] The source theme starterkit_theme has a development version number \n (7.x-dev). Determining a specific commit is not possible because git is\n not installed. Either install git or use a tagged release to generate a\n theme.",trim($process->getOutput()),$process->getErrorOutput());
$this->assertEquals("The source theme starterkit_theme does not have a version specified. This makes tracking changes in the source theme difficult. Are you sure you want to continue? (yes/no) [yes]:\n > Theme generated successfully to themes/test_custom_theme",trim($process->getOutput()),$process->getErrorOutput());