|
@@ -31,7 +31,7 @@ class GitDownloader extends VcsDownloader
|
|
|
$this->io->write(" Cloning ".$package->getSourceReference());
|
|
|
$command = sprintf('git clone %s %s && cd %2$s && git checkout %3$s && git reset --hard %3$s', $url, $path, $ref);
|
|
|
if (0 !== $this->process->execute($command, $ignoredOutput)) {
|
|
|
- throw new \RuntimeException('Failed to execute ' . $command);
|
|
|
+ throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -45,7 +45,7 @@ class GitDownloader extends VcsDownloader
|
|
|
$this->io->write(" Checking out ".$target->getSourceReference());
|
|
|
$command = sprintf('cd %s && git fetch && git checkout %2$s && git reset --hard %2$s', $path, $ref);
|
|
|
if (0 !== $this->process->execute($command, $ignoredOutput)) {
|
|
|
- throw new \RuntimeException('Failed to execute ' . $command);
|
|
|
+ throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -56,7 +56,7 @@ class GitDownloader extends VcsDownloader
|
|
|
{
|
|
|
$command = sprintf('cd %s && git status --porcelain', escapeshellarg($path));
|
|
|
if (0 !== $this->process->execute($command, $output)) {
|
|
|
- throw new \RuntimeException('Failed to execute ' . $command);
|
|
|
+ throw new \RuntimeException('Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput());
|
|
|
}
|
|
|
|
|
|
if (trim($output)) {
|