(params: {
runtimeTempDir: string;
filename: string;
purpose: string;
})
| 676 | } |
| 677 | |
| 678 | function buildRuntimeTempPath(params: { |
| 679 | runtimeTempDir: string; |
| 680 | filename: string; |
| 681 | purpose: string; |
| 682 | }): string { |
| 683 | const runtimePath = path.posix.join(params.runtimeTempDir, params.filename); |
| 684 | assert( |
| 685 | isPathInsideDir(params.runtimeTempDir, runtimePath), |
| 686 | `task_apply_git_patch ${params.purpose} path must stay inside runtimeTempDir` |
| 687 | ); |
| 688 | return runtimePath; |
| 689 | } |
| 690 | |
| 691 | interface GitStatusPorcelainEntry { |
| 692 | path: string; |
no test coverage detected