diff --git a/Mage/Config.php b/Mage/Config.php index 6f8c7b9..2991acd 100644 --- a/Mage/Config.php +++ b/Mage/Config.php @@ -526,8 +526,7 @@ class Config */ public function setFrom($from) { - $envConfig = $this->getEnvironmentConfig(); - $envConfig['deployment']['from'] = $from; + $this->environmentConfig['deployment']['from'] = $from; return $this; } diff --git a/Mage/Task/BuiltIn/Scm/CloneTask.php b/Mage/Task/BuiltIn/Scm/CloneTask.php index 786b75a..7c50b4a 100644 --- a/Mage/Task/BuiltIn/Scm/CloneTask.php +++ b/Mage/Task/BuiltIn/Scm/CloneTask.php @@ -66,12 +66,12 @@ class CloneTask extends AbstractTask case 'git': // Clone Repo $command = 'cd ' . $this->source['temporal'] . ' ; ' - . 'git clone ' . $this->source['repository'] . ' . '; + . 'git clone ' . $this->source['repository'] . ' . '; $result = $this->runCommandLocal($command); // Checkout Branch $command = 'cd ' . $this->source['temporal'] . ' ; ' - . 'git checkout ' . $this->source['from']; + . 'git checkout ' . $this->source['from']; $result = $result && $this->runCommandLocal($command); $this->getConfig()->setFrom($this->source['temporal']);