src/Util/Git.php
public static function &clone_remote($repo_path, $remote, $reference = null) {
		return GitRepo::create_new($repo_path, $remote, true, $reference);
	}
public static function &clone_remote($repo_path, $remote, $reference = null) {
		return GitRepo::create_new($repo_path, $remote, true, $reference);
	}
public static function & clone_remote ( $ repo_path , $ remote , $ reference = null ) { return GitRepo :: create_new ( $ repo_path , $ remote , true , $ reference ) ; }
Clones a remote repo into a directory and then returns a GitRepo object
for the newly created local repo

Accepts a creation path and a remote to clone from

@access  public
@param   string  repository path
@param   string  remote source
@param   string  reference path
@return  GitRepo
Clones a remote repo into a directory and then returns a GitRepo object for the newly created local repo