Restoring the ability to change a project's default branch. Fixes #532
This commit is contained in:
parent
cd5d28f7e8
commit
e967ae5bf7
|
@ -194,6 +194,7 @@ class ProjectController extends \PHPCI\Controller
|
||||||
'ssh_public_key' => $this->getParam('pubkey', null),
|
'ssh_public_key' => $this->getParam('pubkey', null),
|
||||||
'build_config' => $this->getParam('build_config', null),
|
'build_config' => $this->getParam('build_config', null),
|
||||||
'allow_public_status' => $this->getParam('allow_public_status', 0),
|
'allow_public_status' => $this->getParam('allow_public_status', 0),
|
||||||
|
'branch' => $this->getParam('branch', null),
|
||||||
);
|
);
|
||||||
|
|
||||||
$project = $this->projectService->createProject($title, $type, $reference, $options);
|
$project = $this->projectService->createProject($title, $type, $reference, $options);
|
||||||
|
@ -255,6 +256,7 @@ class ProjectController extends \PHPCI\Controller
|
||||||
'ssh_public_key' => $this->getParam('pubkey', null),
|
'ssh_public_key' => $this->getParam('pubkey', null),
|
||||||
'build_config' => $this->getParam('build_config', null),
|
'build_config' => $this->getParam('build_config', null),
|
||||||
'allow_public_status' => $this->getParam('allow_public_status', 0),
|
'allow_public_status' => $this->getParam('allow_public_status', 0),
|
||||||
|
'branch' => $this->getParam('branch', null),
|
||||||
);
|
);
|
||||||
|
|
||||||
$project = $this->projectService->updateProject($project, $title, $type, $reference, $options);
|
$project = $this->projectService->updateProject($project, $title, $type, $reference, $options);
|
||||||
|
|
Loading…
Reference in a new issue