From 59574711c1cb537187a4501c23f85608c1e6b613 Mon Sep 17 00:00:00 2001 From: David Lin Date: Tue, 15 Apr 2014 09:59:16 +1000 Subject: [PATCH] Fixed a bug in the builtin ChangeBranchTask.php --- Mage/Task/BuiltIn/Scm/ChangeBranchTask.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Mage/Task/BuiltIn/Scm/ChangeBranchTask.php b/Mage/Task/BuiltIn/Scm/ChangeBranchTask.php index c585017..7cfa5d5 100644 --- a/Mage/Task/BuiltIn/Scm/ChangeBranchTask.php +++ b/Mage/Task/BuiltIn/Scm/ChangeBranchTask.php @@ -63,8 +63,7 @@ class ChangeBranchTask extends AbstractTask */ public function run() { - $scmConfig = $this->getConfig()->general('scm', array()); - switch ((isset($scmConfig['type']) ? $scmConfig['type'] : false)) { + switch ($this->getConfig()->general('scm')) { case 'git': if ($this->getParameter('_changeBranchRevert', false)) { $command = 'git checkout ' . self::$startingBranch;