diff --git a/Mage/Command/BuiltIn/DeployCommand.php b/Mage/Command/BuiltIn/DeployCommand.php index 014dea6..8dd6c9d 100644 --- a/Mage/Command/BuiltIn/DeployCommand.php +++ b/Mage/Command/BuiltIn/DeployCommand.php @@ -267,7 +267,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'); }