1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Merge branch '1.4'

This commit is contained in:
Jordi Boggiano 2017-07-03 17:00:48 +02:00
commit 34dbde3873
5 changed files with 25 additions and 21 deletions

View file

@ -118,7 +118,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;