diff --git a/PHPCI/Model/Build/RemoteGitBuild.php b/PHPCI/Model/Build/RemoteGitBuild.php index ce7e51f5..125515c3 100644 --- a/PHPCI/Model/Build/RemoteGitBuild.php +++ b/PHPCI/Model/Build/RemoteGitBuild.php @@ -119,12 +119,14 @@ class RemoteGitBuild extends Build $commit = $this->getCommitId(); if (!empty($commit) && $commit != 'Manual') { - $cmd = 'cd "%s" && git checkout %s'; + $cmd = 'cd "%s"'; if (IS_WIN) { - $cmd = 'cd /d "%s" && git checkout %s'; + $cmd = 'cd /d "%s"'; } + $cmd .= ' && git checkout %s --quiet'; + $success = $builder->executeCommand($cmd, $cloneTo, $this->getCommitId()); }