Remote Git Build: Use --quiet to checkout specific revision silently
Without the ``--quiet`` parameter, the cron error output get this message : ``` Note: checking out 'fe0fcd1b79f0db3d49fe6e50765bcb527e29980b'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at fe0fcd1... ``` Closes #485
This commit is contained in:
parent
2109379501
commit
dae95a1bec
1 changed files with 4 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue