1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-08-27 05:40:16 +02:00

Fixed a bug in the builtin ChangeBranchTask.php

This commit is contained in:
David Lin 2014-04-15 09:59:16 +10:00
parent a97d172a6d
commit 59574711c1

View File

@ -63,8 +63,7 @@ class ChangeBranchTask extends AbstractTask
*/ */
public function run() public function run()
{ {
$scmConfig = $this->getConfig()->general('scm', array()); switch ($this->getConfig()->general('scm')) {
switch ((isset($scmConfig['type']) ? $scmConfig['type'] : false)) {
case 'git': case 'git':
if ($this->getParameter('_changeBranchRevert', false)) { if ($this->getParameter('_changeBranchRevert', false)) {
$command = 'git checkout ' . self::$startingBranch; $command = 'git checkout ' . self::$startingBranch;