pub fn repo_cache_dir(repo: &RepoRef) -> Result<PathBuf, String>
Cache directory for a repo+ref, with every path segment sanitized so a hostile owner/repo/ref cannot escape the cache root.