From e967ae5bf76aa3a0c2bcd19fca9218470f9264dd Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Thu, 31 Jul 2014 12:15:26 +0100 Subject: [PATCH] Restoring the ability to change a project's default branch. Fixes #532 --- PHPCI/Controller/ProjectController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PHPCI/Controller/ProjectController.php b/PHPCI/Controller/ProjectController.php index a2f6f3a1..56dc9ed0 100644 --- a/PHPCI/Controller/ProjectController.php +++ b/PHPCI/Controller/ProjectController.php @@ -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);