Merge pull request #119 from ss-gxp/fix-env-build

Fix env build - omit checkout exact commit
This commit is contained in:
Dmitry Khomutov 2017-09-04 19:33:26 +07:00 committed by GitHub
commit 418eb1a96e

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);
}