Added ability to merge in-database project config over in-repository
config instead of only overwrite. This commit solve issues: #14, #70, #106, #121.
This commit is contained in:
parent
f2a1ab39a2
commit
069026bc2d
20 changed files with 277 additions and 130 deletions
|
|
@ -50,14 +50,13 @@ class SvnBuild extends Build
|
|||
$svn = $builder->getConfig('svn');
|
||||
if ($svn) {
|
||||
foreach ($svn as $key => $value) {
|
||||
$cmd .= " --$key $value ";
|
||||
$cmd .= " --${key} ${value} ";
|
||||
}
|
||||
}
|
||||
|
||||
$depth = $builder->getConfig('clone_depth');
|
||||
|
||||
if (!is_null($depth)) {
|
||||
$cmd .= ' --depth ' . intval($depth) . ' ';
|
||||
$buildSettings = $builder->getConfig('build_settings');
|
||||
if ($buildSettings && isset($buildSettings['clone_depth'])) {
|
||||
$cmd .= ' --depth ' . intval($buildSettings['clone_depth']) . ' ';
|
||||
}
|
||||
|
||||
$this->svnCommand = $cmd;
|
||||
|
|
@ -68,8 +67,6 @@ class SvnBuild extends Build
|
|||
*/
|
||||
public function createWorkingCopy(Builder $builder, $buildPath)
|
||||
{
|
||||
$this->handleConfig($builder, $buildPath);
|
||||
|
||||
$this->extendSvnCommandFromConfig($builder);
|
||||
|
||||
$key = trim($this->getProject()->getSshPrivateKey());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue