def get_repo(self, repo: str, branch: str, *,
                 depth: Optional[int]=1,
                 reference: Optional[Path]=None
                 ) -> Repo:
        """ Returns a :class:`Repo <git.repo.base.Repo>` instance for the branch.

        See :meth:`run` for arguments descriptions.
        """
        git_repo, _ = self.get_files(repo, branch, depth=depth, reference=reference)

        return git_repo
def get_repo ( self , repo : str , branch : str , * , depth : Optional [ int ] = 1 , reference : Optional [ Path ] = None ) -> Repo : git_repo , _ = self . get_files ( repo , branch , depth = depth , reference = reference ) return git_repo
Returns a :class:`Repo <git.repo.base.Repo>` instance for the branch.

        See :meth:`run` for arguments descriptions.