MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isGitProtocolRequest

Function isGitProtocolRequest

services/app-builder/src/handlers/git-protocol.ts:30–36  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

28 * Check if request is a Git protocol request
29 */
30export 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

Callers 1

fetchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected