subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def create_worktree(rev: str) -> Path: worktree_dir = Path(tempfile.mkdtemp(prefix="last30days-eval-")) subprocess.run( ["git", "worktree", "add", "--detach", str(worktree_dir), rev], cwd=REPO_ROOT, check=True,- Confidence
- 79% confidence
- Finding
- subprocess.run( ["git", "worktree", "add", "--detach", str(worktree_dir), rev], cwd=REPO_ROOT, check=True, capture_output=True, text=True, )
