diff --git a/src/PHPCensor/Model/Build/RemoteGitBuild.php b/src/PHPCensor/Model/Build/RemoteGitBuild.php index 780e929a..76191363 100644 --- a/src/PHPCensor/Model/Build/RemoteGitBuild.php +++ b/src/PHPCensor/Model/Build/RemoteGitBuild.php @@ -54,7 +54,7 @@ class RemoteGitBuild extends Build $cmd .= ' --depth ' . intval($depth) . ' '; } - $cmd .= ' -b %s %s "%s"'; + $cmd .= ' -b "%s" "%s" "%s"'; $success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo); if ($success) { @@ -81,7 +81,7 @@ class RemoteGitBuild extends Build $cmd .= ' --depth ' . intval($depth) . ' '; } - $cmd .= ' -b %s %s "%s"'; + $cmd .= ' -b "%s" "%s" "%s"'; $cmd = 'export GIT_SSH="'.$gitSshWrapper.'" && ' . $cmd; $success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo);