def envs(self, ignore_cache=False):
        if not ignore_cache:
            cache_match = salt.fileserver.check_env_cache(
                self.opts,
                self.env_cache
            )
            if cache_match is not None:
                return cache_match
        ret = set()
        for repo in self.remotes:
            ret.update(repo.envs())
        return sorted(ret)
Return a list of refs that can be used as environments
dataset/ETHPy150Open saltstack/salt/salt/utils/gitfs.py/GitFS.envs