1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Skip empty time values

This commit is contained in:
Jordi Boggiano 2014-12-03 13:06:24 +00:00
parent 13d368e061
commit 2b7b605839
6 changed files with 6 additions and 6 deletions

View file

@ -93,7 +93,7 @@ class GitBitbucketDriver extends VcsDriver implements VcsDriverInterface
$composer = JsonFile::parseJson($composer, $resource);
if (!isset($composer['time'])) {
if (empty($composer['time'])) {
$resource = $this->getScheme() . '://api.bitbucket.org/1.0/repositories/'.$this->owner.'/'.$this->repository.'/changesets/'.$identifier;
$changeset = JsonFile::parseJson($this->getContents($resource), $resource);
$composer['time'] = $changeset['timestamp'];