diff --git a/Mage/Task/BuiltIn/Deployment/Strategy/GitCloneTask.php b/Mage/Task/BuiltIn/Deployment/Strategy/GitCloneTask.php index 80f7b55..21cf8fc 100644 --- a/Mage/Task/BuiltIn/Deployment/Strategy/GitCloneTask.php +++ b/Mage/Task/BuiltIn/Deployment/Strategy/GitCloneTask.php @@ -26,13 +26,14 @@ class GitCloneTask extends BaseStrategyTaskAbstract implements IsReleaseAware public function run() { + $repository = $this->getConfig()->deployment('repository'); + $branch = $this->getConfig()->deployment('branch', 'master'); + $deployToDirectory = $this->getConfig()->deployment('to'); - $repository = $this->getConfig()->deployment('git-repository'); - $branch = $this->getConfig()->deployment('git-branch', 'master'); + if (!$repository or !$branch or !$deployToDirectory) return false; $this->checkOverrideRelease(); - $deployToDirectory = $this->getConfig()->deployment('to'); if ($this->getConfig()->release('enabled', false) === true) { $releasesDirectory = $this->getConfig()->release('directory', 'releases');