Fix the git plugin merge command, see #326

This commit is contained in:
Dan Cryer 2014-05-12 18:57:55 +01:00
parent 84cfda3538
commit a62307250f

View file

@ -80,8 +80,9 @@ class Git implements \PHPCI\Plugin
protected function runMergeAction($options)
{
if (array_key_exists('branch', $options)) {
$cmd = 'git checkout %s && git merge ' . $this->build->getBranch();
return $this->phpci->executeCommand($cmd, $this->directory, $options['branch']);
$cmd = 'cd "%s" && git checkout %s && git merge "%s"';
$path = $this->phpci->buildPath;
return $this->phpci->executeCommand($cmd, $path, $options['branch'], $this->build->getBranch());
}
}