(auth: AuthRecipe)
| 27 | } |
| 28 | |
| 29 | function baseHeaders(auth: AuthRecipe): Record<string, string> { |
| 30 | const h: Record<string, string> = { |
| 31 | "user-agent": "git/2.x", |
| 32 | }; |
| 33 | if (auth.authorization) h.authorization = auth.authorization; |
| 34 | return h; |
| 35 | } |
| 36 | |
| 37 | function normalizeRepoUrl(url: string): string { |
| 38 | let u = url.trim(); |
no outgoing calls
no test coverage detected