|
@@ -94,14 +94,13 @@ class HgDriver extends VcsDriver
|
|
|
public function getComposerInformation($identifier)
|
|
|
{
|
|
|
if (!isset($this->infoCache[$identifier])) {
|
|
|
- $resource = escapeshellarg($identifier);
|
|
|
- $this->process->execute(sprintf('cd %s && hg cat -r %s composer.json', escapeshellarg($this->tmpDir), $resource), $composer);
|
|
|
+ $this->process->execute(sprintf('cd %s && hg cat -r %s composer.json', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $composer);
|
|
|
|
|
|
if (!trim($composer)) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- $composer = JsonFile::parseJson($composer, $resource);
|
|
|
+ $composer = JsonFile::parseJson($composer, $identifier);
|
|
|
|
|
|
if (!isset($composer['time'])) {
|
|
|
$this->process->execute(sprintf('cd %s && hg log --template "{date|rfc822date}" -r %s', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $output);
|