public static function cloneTo($path, $url, $bare = true, array $options = array())
    {
        $args = $bare ? array('--bare') : array();

        return static::cloneRepository($path, $url, $args, $options);
    }
public static function cloneTo($path, $url, $bare = true, array $options = array())
    {
        $args = $bare ? array('--bare') : array();

        return static::cloneRepository($path, $url, $args, $options);
    }
public static function cloneTo ( $ path , $ url , $ bare = true , array $ options = array ( ) ) { $ args = $ bare ? array ( '--bare' ) : array ( ) ; return static :: cloneRepository ( $ path , $ url , $ args , $ options ) ; }
Clone a repository to a local path.

@param string $path    indicates where to clone repository
@param string $url     url of repository to clone
@param bool   $bare    indicates if repository should be bare or have a working copy
@param array  $options options for Repository creation

@return Repository
Clone a repository to a local path .