* Finish task #59430.

This commit is contained in:
caoyanyi
2022-07-07 11:17:41 +08:00
parent 072945f180
commit 40d2eca43b
3 changed files with 24 additions and 2 deletions
+4 -1
View File
@@ -1305,10 +1305,13 @@ class repo extends control
*/
public function downloadCode($repoID = 0, $branch = '')
{
$url = '';
$repo = $this->repo->getRepoByID($repoID);
if($repo->SCM == 'Gitlab')
{
return '';
$url = $this->loadModel('gitlab')->downloadCode($repo->gitlab, $repo->project, $branch);
}
$this->locate($url);
}
}