1
0
Fork 0

Merge branch '1.5'

pull/6604/head
Jordi Boggiano 2017-08-09 16:02:51 +02:00
commit aff9c72d16
1 changed files with 1 additions and 2 deletions

View File

@ -280,11 +280,10 @@ class GitLabDriver extends VcsDriver
{ {
$resource = $this->getApiUrl().'/repository/'.$type.'?per_page=100'; $resource = $this->getApiUrl().'/repository/'.$type.'?per_page=100';
$references = array();
do { do {
$data = JsonFile::parseJson($this->getContents($resource), $resource); $data = JsonFile::parseJson($this->getContents($resource), $resource);
$references = array();
foreach ($data as $datum) { foreach ($data as $datum) {
$references[$datum['name']] = $datum['commit']['id']; $references[$datum['name']] = $datum['commit']['id'];