(ref: string)
| 265 | |
| 266 | /** Assert that a Git reference is valid and does not start with a hyphen. */ |
| 267 | export function assertValidGitRef(ref: string) { |
| 268 | if (ref.startsWith('-')) { |
| 269 | throw new Error(`Invalid Git reference: ${ref}`); |
| 270 | } |
| 271 | } |
no outgoing calls
no test coverage detected