You are here

protected function Provision_PlatformGit::buildGitCheckoutCommand in Aegir Deploy 7.3

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

File

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

Class

Provision_PlatformGit
@file The Provision_PlatformGit class.

Code

protected function buildGitCheckoutCommand() {
  $command = 'cd ' . escapeshellarg(trim($this->repository_path));
  $command .= ' && git fetch --unshallow && ';
  $command .= 'git checkout ' . escapeshellarg(trim($this->reference));
  return $command;
}