* fix bug 14612.

This commit is contained in:
lichengjun
2021-09-02 08:35:06 +00:00
parent 38e4833506
commit 425f6265b6
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -279,9 +279,16 @@ class gitlabModel extends model
$refList = array();
$branches = $this->loadModel('gitlab')->apiGetBranches($gitlabID, $projectID);
$tags = $this->loadModel('gitlab')->apiGetTags($gitlabID, $projectID);
/* fix bug 14612*/
if(isset($branches->message)) return array();
if(isset($branches->error)) return array();
foreach($branches as $branch) $refList[] = "Branch::" . $branch->name;
foreach($tags as $tag) $refList[] = "Tag::" . $tag->name;
return $refList;
}
/**