MCPcopy
hub / github.com/cloudflare/vibesdk / isGitProtocolRequest

Function isGitProtocolRequest

worker/api/handlers/git-protocol.ts:26–28  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

24 * Check if request is a Git protocol request
25 */
26export function isGitProtocolRequest(pathname: string): boolean {
27 return GIT_INFO_REFS_PATTERN.test(pathname) || GIT_UPLOAD_PACK_PATTERN.test(pathname);
28}
29
30/**
31 * Extract app ID from Git protocol URL

Callers 1

fetchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected