def _process_git_repo(config, cache, output): output.info("Trying to clone repo: %s" % config.uri) with tmp_config_install_folder(cache) as tmp_folder: with tools.chdir(tmp_folder): try: args = config.args or "" git = Git(verify_ssl=config.verify_ssl, output=output) git.clone(config.uri, args=args) output.info("Repo cloned!") except Exception as e: raise ConanException("Can't clone repo: %s" % str(e)) _process_folder(config, tmp_folder, cache, output)
def _process_git_repo(repo_url, cache, output, tmp_folder, verify_ssl, args=None): output.info("Trying to clone repo: %s" % repo_url) with tools.chdir(tmp_folder): try: args = args or "" git = Git(verify_ssl=verify_ssl, output=output) git.clone(repo_url, args=args) output.info("Repo cloned!") except Exception as e: raise ConanException("Can't clone repo: %s" % str(e)) _process_folder(tmp_folder, cache, output)