(pathname: string)
| 28 | * Check if request is a Git protocol request |
| 29 | */ |
| 30 | export function isGitProtocolRequest(pathname: string): boolean { |
| 31 | return ( |
| 32 | GIT_INFO_REFS_PATTERN.test(pathname) || |
| 33 | GIT_UPLOAD_PACK_PATTERN.test(pathname) || |
| 34 | GIT_RECEIVE_PACK_PATTERN.test(pathname) |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Extract repository ID from Git protocol URL |