diff --git a/module/repo/control.php b/module/repo/control.php index bfa425db77..e699afa723 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -1372,7 +1372,8 @@ class repo extends control } elseif($repo->SCM == 'Gitea') { - $url = "$repo->codePath/archive/{$branch}.zip"; + $api = $this->loadModel('gitea')->getApiRoot($repo->serviceHost); + $url = sprintf($api, "/repos/{$repo->serviceProject}/archive/{$branch}.zip"); } elseif($repo->SCM == 'Git') {