Explorar o código

Previous change was wrong... We want to update to a specific version, so hg pull -u won't work.

Per Bernhardt %!s(int64=13) %!d(string=hai) anos
pai
achega
ad8e85ab32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Downloader/HgDownloader.php

+ 1 - 1
src/Composer/Downloader/HgDownloader.php

@@ -51,7 +51,7 @@ class HgDownloader implements DownloaderInterface
         }
 
         $this->enforceCleanDirectory($path);
-        system(sprintf('cd %s && hg pull -u %s', $path, $target->getSourceReference()));
+        system(sprintf('cd %s && hg pull && hg up %s', $path, escapeshellarg($target->getSourceReference())));
     }
 
     /**