diff --git a/module/repo/control.php b/module/repo/control.php index bcf4aea77e..526df66378 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -219,7 +219,7 @@ class repo extends control */ public function createBranch(int $taskID, int $executionID, int $repoID = 0) { - $repoList = $this->repo->getList($executionID); + $repoList = $this->repo->getList($executionID, implode(',', $this->config->repo->gitServiceTypeList)); if(!$repoList) return $this->send(array('result' => 'fail', 'message' => $this->lang->repo->error->noFound)); if(!$repoID) $repoID = $this->post->repoID; diff --git a/module/repo/ui/createbranch.html.php b/module/repo/ui/createbranch.html.php index 665a68bdf4..10a7cff9f8 100644 --- a/module/repo/ui/createbranch.html.php +++ b/module/repo/ui/createbranch.html.php @@ -24,6 +24,7 @@ formPanel set::required(true), picker ( + set::required(true), set::name('repoID'), set::items($repoPairs), set::value($repoID),