You are here

protected function Provision_PlatformGit::buildGitCloneCommand in Aegir Deploy 7.3

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

File

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

Class

Provision_PlatformGit
@file The Provision_PlatformGit class.

Code

protected function buildGitCloneCommand() {
  $command = 'git clone --recursive --depth 1 --no-progress --quiet';
  if ($this
    ->referenceIsABranch() || $this
    ->referenceIsATag()) {
    $command .= ' --branch ' . escapeshellarg(trim($this->reference));
  }
  $command .= ' ' . escapeshellarg(trim($this->repository_url));
  $command .= ' ' . escapeshellarg(trim($this->repository_path));
  return $command;
}