1
0
Fork 0

Fixed the HgDownloader when changing the repo url

pull/436/head
Per Bernhardt 2012-03-11 13:31:25 +01:00
parent fcca58ceb6
commit 9f7155a753
1 changed files with 2 additions and 1 deletions

View File

@ -37,10 +37,11 @@ class HgDownloader extends VcsDownloader
*/
public function doUpdate(PackageInterface $initial, PackageInterface $target, $path)
{
$url = escapeshellarg($target->getSourceUrl());
$ref = escapeshellarg($target->getSourceReference());
$path = escapeshellarg($path);
$this->io->write(" Updating to ".$target->getSourceReference());
$this->process->execute(sprintf('cd %s && hg pull && hg up %s', $path, $ref), $ignoredOutput);
$this->process->execute(sprintf('cd %s && hg pull %s && hg up %s', $path, $url, $ref), $ignoredOutput);
}
/**