/** * {@inheritDoc} */ public function getComposerInformation($identifier) { $resource = sprintf('%s:%s', escapeshellarg($identifier), $this->repoConfig['filename']); return ProcessUtil::getComposerInformation($this->cache, $this->infoCache, $this->repoConfig['asset-type'], $this->process, $identifier, $resource, sprintf('git show %s', $resource), sprintf('git log -1 --format=%%at %s', escapeshellarg($identifier)), $this->repoDir, '@'); }
/** * {@inheritdoc} */ public function getComposerInformation($identifier) { $resource = sprintf('%s %s', ProcessExecutor::escape($identifier), $this->repoConfig['filename']); return ProcessUtil::getComposerInformation($this->cache, $this->infoCache, $this->repoConfig['asset-type'], $this->process, $identifier, $resource, sprintf('hg cat -r %s', $resource), sprintf('hg log --template "{date|rfc3339date}" -r %s', ProcessExecutor::escape($identifier)), $this->repoDir); }