You are here

protected function Provision_PlatformGit::gitCheckout in Aegir Deploy 7.3

1 call to Provision_PlatformGit::gitCheckout()
Provision_PlatformGit::deployPlatform in modules/platform_git/drush/Provision/PlatformGit.php

File

modules/platform_git/drush/Provision/PlatformGit.php, line 50
The Provision_PlatformGit class.

Class

Provision_PlatformGit
@file The Provision_PlatformGit class.

Code

protected function gitCheckout() {
  if ($this
    ->referenceIsACommit()) {
    $this
      ->notice(dt('Fetching full Git history and checking out commit `:ref`', [
      ':ref' => $this->reference,
    ]));
    return $this
      ->runCommand($this
      ->buildGitCheckoutCommand());
  }
  return TRUE;
}