Restoring the ability to change a project's default branch. Fixes #532

This commit is contained in:
Dan Cryer 2014-07-31 12:15:26 +01:00
parent cd5d28f7e8
commit e967ae5bf7

View file

@ -194,6 +194,7 @@ class ProjectController extends \PHPCI\Controller
'ssh_public_key' => $this->getParam('pubkey', null),
'build_config' => $this->getParam('build_config', null),
'allow_public_status' => $this->getParam('allow_public_status', 0),
'branch' => $this->getParam('branch', null),
);
$project = $this->projectService->createProject($title, $type, $reference, $options);
@ -255,6 +256,7 @@ class ProjectController extends \PHPCI\Controller
'ssh_public_key' => $this->getParam('pubkey', null),
'build_config' => $this->getParam('build_config', null),
'allow_public_status' => $this->getParam('allow_public_status', 0),
'branch' => $this->getParam('branch', null),
);
$project = $this->projectService->updateProject($project, $title, $type, $reference, $options);