if (0 !== $this->process->execute($command, $output)) {
if (0 !== $this->process->execute($command, $output)) {
$output = $this->process->getErrorOutput();
$output = $this->process->getErrorOutput();
if (false === strpos($this->process->execute('git --version', $handler), 'git version')) {
throw new \RuntimeException('Failed to clone '.$this->url.', it looks like git isn\'t accessible through the console, please check your installation and your PATH env.' . "\n\n" . $this->process->getErrorOutput());
if (127 === $this->process->execute('git --version', $handler)) {
} else {
throw new \RuntimeException('Failed to clone '.$this->url.', git isn\'t accessible through the console, please check your installation and your PATH env.' . "\n\n" . $this->process->getErrorOutput());
throw new \RuntimeException('Failed to clone '.$this->url.', could not read packages from it ('.$output.')');
}
}
throw new \RuntimeException('Failed to clone '.$this->url.', could not read packages from it ('.$output.')');