@classmethod
    def _clone_repo(cls, repo, url, path, name, **kwargs):
        module_abspath = cls._module_abspath(repo, path, name)
        module_checkout_path = module_abspath
        if cls._need_gitfile_submodules(repo.git):
            kwargs['separate_git_dir'] = module_abspath
            module_abspath_dir = os.path.dirname(module_abspath)
            if not os.path.isdir(module_abspath_dir):
                os.makedirs(module_abspath_dir)
            module_checkout_path = os.path.join(repo.working_tree_dir, path)
        # end

        clone = git.Repo.clone_from(url, module_checkout_path, **kwargs)
        if cls._need_gitfile_submodules(repo.git):
            cls._write_git_file_and_module_config(module_checkout_path, module_abspath)
        # end
        return clone
Clone CloudBioLinux to a temporary directory.
dataset/ETHPy150Open gitpython-developers/GitPython/git/objects/submodule/base.py/Submodule._clone_repo--crossover with--dataset/ETHPy150Open chapmanb/cloudbiolinux/deploy/test_install_galaxy_tool.py/__clone_cloudbiolinux