1
0
Fork 0

fix tag/branch collection 💣

pull/6604/head
Helmut Januschka 2017-08-09 15:47:36 +02:00 committed by Jordi Boggiano
parent 0f94dcd848
commit 320af80ad3
1 changed files with 2 additions and 1 deletions

View File

@ -280,10 +280,11 @@ 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'];