GitWrapper\GitWorkingCopy::cloneRepository PHP Method

cloneRepository() public method

Clone a repository into a new directory. Use GitWorkingCopy::clone() instead for more readable code.
public cloneRepository ( string $repository, array $options = [] ) : GitWorkingCopy
$repository string The Git URL of the repository being cloned.
$options array (optional) An associative array of command line options.
return GitWorkingCopy
    public function cloneRepository($repository, $options = array())
    {
        $args = array('clone', $repository, $this->directory, $options);
        return $this->run($args, false);
    }