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:
parent
13d368e061
commit
2b7b605839
6 changed files with 6 additions and 6 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue