'GET /repos/:owner/:repo/git/trees/:sha
https://developer.github.com/v3/git/trees/#get-a-tree'

def get_tree(self, owner, repo, sha='master', recursive=True):

    try:
        params = self.__params
        if recursive:
            params += (('recursive', 1),)
        response = self._root.get(('repos/%s/%s/git/trees/%s' % (owner, repo, sha)), headers=self.__headers, params=self.__params)
        return self._get_json(response)
    except RestException as e:
        raise GithubClientException(('Could    not    find    GitHub    object,    check    owner,    repo    and    filepath    or    permissions:    %s' % e))
