opal_common/git/repo_cloner.py
def _attempt_clone_from_url(self) -> CloneResult:
        """
        clones the repo from url or throws GitFailed
        """
        env = self._provide_git_ssh_environment()
        _clone_func = partial(self._clone, env=env)
        _clone_with_retries = retry(**self._retry_config)(_clone_func)
        try:
            repo: Repo = _clone_with_retries()
        except (GitError, GitCommandError) as e:
            raise GitFailed(e)
        except RetryError as e:
            logger.exception("cannot clone policy repo: {error}", error=e)
            raise GitFailed(e)
        else:
            logger.info("Clone succeeded", repo_path=self.path)
            return CloneResult(repo)

        clones the repo from url or throws GitFailed
        
clones the repo from url or throws GitFailed
clones the repo from url or throws GitFailed
def _attempt_clone_from_url(self) -> CloneResult:
        env = self._provide_git_ssh_environment()
        _clone_func = partial(self._clone, env=env)
        _clone_with_retries = retry(**self._retry_config)(_clone_func)
        try:
            repo: Repo = _clone_with_retries()
        except (GitError, GitCommandError) as e:
            raise GitFailed(e)
        except RetryError as e:
            logger.exception("cannot clone policy repo: {error}", error=e)
            raise GitFailed(e)
        else:
            logger.info("Clone succeeded", repo_path=self.path)
            return CloneResult(repo)
def _attempt_clone_from_url ( self ) -> CloneResult : env = self . _provide_git_ssh_environment ( ) _clone_func = partial ( self . _clone , env = env ) _clone_with_retries = retry ( ** self . _retry_config ) ( _clone_func ) try : repo : Repo = _clone_with_retries ( ) except ( GitError , GitCommandError ) as e : raise GitFailed ( e ) except RetryError as e : logger . exception ( "cannot clone policy repo: {error}" , error = e ) raise GitFailed ( e ) else : logger . info ( "Clone succeeded" , repo_path = self . path ) return CloneResult ( repo )
clones the repo from url or throws GitFailed
clones the repo from url or throws GitFailed
"""
        clones the repo from url or throws GitFailed
        """
self