Skip to content

Commit c09a334

Browse files
authored
Merge pull request #796 from codeflash-ai/worktree/mirror-all-arg
[Worktree] mirror the path for the args.all
2 parents 63466b1 + a9cebf1 commit c09a334

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

codeflash/optimization/optimizer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,10 @@ def mirror_paths_for_worktree_mode(self, worktree_dir: Path) -> None:
464464
if self.args.file:
465465
self.args.file = mirror_path(self.args.file, original_git_root, worktree_dir)
466466

467+
if self.args.all:
468+
# the args.all path is the same as module_root.
469+
self.args.all = mirror_path(self.args.all, original_git_root, worktree_dir)
470+
467471
# mirror tests root
468472
self.args.tests_root = mirror_path(self.args.tests_root, original_git_root, worktree_dir)
469473
self.test_cfg.tests_root = mirror_path(self.test_cfg.tests_root, original_git_root, worktree_dir)

0 commit comments

Comments
 (0)