diff --git a/Mage/Command/BuiltIn/DeployCommand.php b/Mage/Command/BuiltIn/DeployCommand.php index 9105792..afea5a2 100644 --- a/Mage/Command/BuiltIn/DeployCommand.php +++ b/Mage/Command/BuiltIn/DeployCommand.php @@ -251,7 +251,7 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment // Change Branch Back if ($config->deployment('scm', false)) { - array_unshift($tasksToRun, 'scm/change-branch'); + array_push($tasksToRun, 'scm/change-branch'); $config->addParameter('_changeBranchRevert'); }