Skip to content

Commit

Permalink
fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yangky11 committed Aug 14, 2024
1 parent 8896814 commit dc755b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lean_dojo/data_extraction/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def _trace(repo: LeanGitRepo, build_deps: bool) -> None:

def is_available_in_cache(repo: LeanGitRepo) -> bool:
"""Check if ``repo`` has a traced repo available in the cache (including the remote cache)."""
return cache.get(repo.url, repo.commit) is not None
rel_cache_dir = repo.get_cache_dirname() / repo.name
return cache.get(rel_cache_dir) is not None


def get_traced_repo_path(repo: LeanGitRepo, build_deps: bool = True) -> Path:
Expand Down

0 comments on commit dc755b9

Please sign in to comment.