(target: Path)
| 932 | |
| 933 | |
| 934 | def require_scannable_target(target: Path) -> None: |
| 935 | metadata = git_target_metadata(target) |
| 936 | if metadata["isGit"] and not metadata["isWorktree"]: |
| 937 | raise SystemExit( |
| 938 | "Codex Security requires a checked-out worktree, not a bare Git repository." |
| 939 | ) |
| 940 | |
| 941 | |
| 942 | def stable_target_id(target: Path) -> str: |
no test coverage detected