/** * 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 * @return GitRepo **/ public static function &clone_remote($repo_path, $remote) { return GitRepo::create_new($repo_path, $remote, true); }
/** * Create a new git repository * * Accepts a creation path, and, optionally, a source path * * @access public * @param string repository path * @param string directory to source * @return GitRepo */ public static function &create($repo_path, $source = null) { return GitRepo::create_new($repo_path, $source); }
/** * 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 **/ public static function &clone_remote($repo_path, $remote, $reference = null) { return GitRepo::create_new($repo_path, $remote, true, $reference); }