소스 검색

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

Per Bernhardt 13 년 전
부모
커밋
ad8e85ab32
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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())));
     }
 
     /**