Skip to content

Commit

Permalink
Merge pull request #119 from ss-gxp/fix-env-build
Browse files Browse the repository at this point in the history
Fix env build - omit checkout exact commit
  • Loading branch information
corpsee committed Sep 4, 2017
2 parents 29553ac + b501775 commit 418eb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPCensor/Model/Build/RemoteGitBuild.php
Expand Up @@ -141,7 +141,7 @@ protected function postCloneSetup(Builder $builder, $cloneTo, array $extra = nul
$commit = $this->getCommitId();
$chdir = 'cd "%s"';

if (!empty($commit) && $commit != 'Manual') {
if (empty($this->getEnvironment()) && !empty($commit) && $commit != 'Manual') {
$cmd = $chdir . ' && git checkout %s --quiet';
$success = $builder->executeCommand($cmd, $cloneTo, $commit);
}
Expand Down

0 comments on commit 418eb1a

Please sign in to comment.