From 575d83357ac7c22e55b66f42c7c902237daa1e6b Mon Sep 17 00:00:00 2001 From: Stef Date: Wed, 5 Sep 2018 12:20:48 +0100 Subject: [PATCH] fix deploy flag --- src/Tasks/Batch/Deploy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/Batch/Deploy.php b/src/Tasks/Batch/Deploy.php index 2afd72d..17c3ee5 100644 --- a/src/Tasks/Batch/Deploy.php +++ b/src/Tasks/Batch/Deploy.php @@ -31,7 +31,7 @@ public function deploy(Config $config) $git->ensureStageIsClean()->fetch(); $needsRemoteConfig = $git->fortrabbitRemoteNeedsConfiguring($config); - $git->onBranch($config->targetBranch(), function($git, $command, $input, $output) use ($config, $firstTime) { + $git->onBranch($config->targetBranch(), function($git, $command, $input, $output) use ($config, $needsRemoteConfig) { $this->task(Assets::class)->build($config); // @todo - pre deploy hooks (remote) - maintanence mode