(workspacePath: string, gitPath: string)
| 78 | } |
| 79 | |
| 80 | function resolveRuntimePath(workspacePath: string, gitPath: string): string { |
| 81 | assert(gitPath.trim().length > 0, "git exclude path is required"); |
| 82 | if (path.isAbsolute(gitPath) || /^[/~]/u.test(gitPath) || /^[A-Za-z]:[\\/]/u.test(gitPath)) { |
| 83 | return gitPath; |
| 84 | } |
| 85 | return `${workspacePath.replace(/[\\/]+$/u, "")}/${gitPath}`; |
| 86 | } |
no test coverage detected