This commit is contained in:
Andrés Montañez 2014-08-07 16:32:42 -03:00
parent eb9427d322
commit 6196cda70b
2 changed files with 3 additions and 4 deletions

View file

@ -526,8 +526,7 @@ class Config
*/
public function setFrom($from)
{
$envConfig = $this->getEnvironmentConfig();
$envConfig['deployment']['from'] = $from;
$this->environmentConfig['deployment']['from'] = $from;
return $this;
}

View file

@ -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']);