Explorar o código

Merge pull request #6501 from Neurones67/1.4

Fix hg command to retrieve file content
Jordi Boggiano %!s(int64=8) %!d(string=hai) anos
pai
achega
b50eb26740
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Repository/Vcs/HgDriver.php

+ 1 - 1
src/Composer/Repository/Vcs/HgDriver.php

@@ -119,7 +119,7 @@ class HgDriver extends VcsDriver
     public function getFileContent($file, $identifier)
     {
         $resource = sprintf('hg cat -r %s %s', ProcessExecutor::escape($identifier), ProcessExecutor::escape($file));
-        $this->process->execute(sprintf('hg cat -r %s', $resource), $content, $this->repoDir);
+        $this->process->execute($resource, $content, $this->repoDir);
 
         if (!trim($content)) {
             return;