Remove all the worktrees in the .phylox_evaluate directory.
(config: EvoGitConfig)
| 560 | |
| 561 | |
| 562 | def cleanup_temp_worktrees(config: EvoGitConfig) -> None: |
| 563 | """Remove all the worktrees in the .phylox_evaluate directory.""" |
| 564 | worktree_dir = os.path.join(config.git_dir, ".phylox_evaluate") |
| 565 | if os.path.exists(worktree_dir): |
| 566 | shutil.rmtree(worktree_dir) |
| 567 | |
| 568 | subprocess.run( |
| 569 | ["git", "worktree", "prune"], |
| 570 | cwd=config.git_dir, |
| 571 | check=True, |
| 572 | ) |
| 573 | |
| 574 | |
| 575 | def merge_branches(config: EvoGitConfig, commit: str) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected