1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add per_page to do less pagination, refs #6592

This commit is contained in:
Jordi Boggiano 2017-08-08 10:05:30 +02:00
parent 086b750b76
commit 6fd504ef41

View file

@ -278,7 +278,7 @@ class GitLabDriver extends VcsDriver
*/
protected function getReferences($type)
{
$resource = $this->getApiUrl().'/repository/'.$type;
$resource = $this->getApiUrl().'/repository/'.$type.'?per_page=100';
do {
$data = JsonFile::parseJson($this->getContents($resource), $resource);