Skip to content

Commit 2f8a33a

Browse files
always create the patches dir
1 parent 1c3fdcc commit 2f8a33a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codeflash/code_utils/git_worktree_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def create_diff_patch_from_worktree(
9393
if not uni_diff_text.endswith("\n"):
9494
uni_diff_text += "\n"
9595

96+
patches_dir.mkdir(parents=True, exist_ok=True)
9697
patch_path = Path(patches_dir / f"{worktree_dir.name}.{fto_name}.patch")
9798
with patch_path.open("w", encoding="utf8") as f:
9899
f.write(uni_diff_text)

0 commit comments

Comments
 (0)