1
0
Fork 0

Warn the user but do not fail hard when a repo can not be synced

pull/636/merge
Jordi Boggiano 2012-04-29 20:55:05 +02:00
parent b0b3e17a37
commit 58276d0a52
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class GitDriver extends VcsDriver
// update the repo if it is a valid git repository
if (is_dir($this->repoDir) && 0 === $this->process->execute('git remote', $output, $this->repoDir)) {
if (0 !== $this->process->execute('git remote update --prune origin', $output, $this->repoDir)) {
throw new \RuntimeException('Failed to update '.$this->url.', could not read packages from it' . "\n\n" .$this->process->getErrorOutput());
$this->io->write('<error>Failed to update '.$this->url.', package information from this repository may be outdated ('.$this->process->getErrorOutput().')</error>');
}
} else {
// clean up directory and do a fresh clone into it