Merge branch '1.5'
commit
79360da184
|
@ -278,7 +278,8 @@ class GitLabDriver extends VcsDriver
|
||||||
*/
|
*/
|
||||||
protected function getReferences($type)
|
protected function getReferences($type)
|
||||||
{
|
{
|
||||||
$resource = $this->getApiUrl().'/repository/'.$type.'?per_page=100';
|
$perPage = 100;
|
||||||
|
$resource = $this->getApiUrl().'/repository/'.$type.'?per_page='.$perPage;
|
||||||
|
|
||||||
$references = array();
|
$references = array();
|
||||||
do {
|
do {
|
||||||
|
@ -291,7 +292,12 @@ class GitLabDriver extends VcsDriver
|
||||||
// unnecessary API call when retrieving the composer file.
|
// unnecessary API call when retrieving the composer file.
|
||||||
$this->commits[$datum['commit']['id']] = $datum['commit'];
|
$this->commits[$datum['commit']['id']] = $datum['commit'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count($data) >= $perPage) {
|
||||||
$resource = $this->getNextPage();
|
$resource = $this->getNextPage();
|
||||||
|
} else {
|
||||||
|
$resource = false;
|
||||||
|
}
|
||||||
} while ($resource);
|
} while ($resource);
|
||||||
|
|
||||||
return $references;
|
return $references;
|
||||||
|
|
Loading…
Reference in New Issue