We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0de7ebd + c35705e commit e83478eCopy full SHA for e83478e
codeflash/code_utils/git_worktree_utils.py
@@ -94,9 +94,10 @@ def remove_worktree(worktree_dir: Path) -> None:
94
logger.exception(f"Failed to remove worktree: {worktree_dir}")
95
96
97
+@lru_cache(maxsize=1)
98
def get_patches_dir_for_project() -> Path:
- project_id = get_git_project_id()
99
- return patches_dir / project_id
+ project_id = get_git_project_id() or ""
100
+ return Path(patches_dir / project_id)
101
102
103
def get_patches_metadata() -> dict[str, Any]:
0 commit comments