Trying adding --prefer-source when --prefer-dist is not enabled

This commit is contained in:
Dan Cryer 2014-05-12 11:47:07 +01:00
parent 3ae0f021f7
commit 32ca0b438d

View file

@ -64,7 +64,7 @@ class Composer implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin
$cmd = 'php ';
}
$cmd .= $composerLocation . ' --no-ansi --no-interaction ';
$cmd .= ($this->preferDist ? '--prefer-dist' : null) . ' --working-dir="%s" %s';
$cmd .= ($this->preferDist ? '--prefer-dist' : '--prefer-source') . ' --working-dir="%s" %s';
return $this->phpci->executeCommand($cmd, $this->directory, $this->action);
}