Fix auto-date parsing in GitDriver
parent
b350dda0fe
commit
1fd9174c0d
|
@ -100,7 +100,7 @@ class GitDriver implements VcsDriverInterface
|
|||
$composer = JsonFile::parseJson($composer);
|
||||
|
||||
if (!isset($composer['time'])) {
|
||||
exec(sprintf('cd %s && git log -1 --format=\'%%at\' %s', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $output);
|
||||
exec(sprintf('cd %s && git log -1 --format=%%at %s', escapeshellarg($this->tmpDir), escapeshellarg($identifier)), $output);
|
||||
$date = new \DateTime('@'.$output[0]);
|
||||
$composer['time'] = $date->format('Y-m-d H:i:s');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue