def _is_git_index_exists(repo_ctx, repo_local_cache_path):
    """ Checks that a local git index exists at the repository cache path

        Args:
            repo_ctx: Repository context of the calling rule
            repo_local_cache_path: Path of the repository cache folder

        Returns:
            Boolean indicating if local git index exists for the repository
    """
    return repo_ctx.path(repo_local_cache_path + "/.git").exists