Fix env build - omit checkout exact commit

This commit is contained in:
Stepan Strelets 2017-09-04 14:49:12 +03:00
parent 29553aca54
commit b501775411

View file

@ -141,7 +141,7 @@ class RemoteGitBuild extends Build
$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);
}