MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getCachedRepository

Function getCachedRepository

source code/utils/detectRepository.ts:70–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 * Callers construct github.com URLs, so GHE hosts are filtered out here.
69 */
70export function getCachedRepository(): string | null {
71 const parsed = repositoryWithHostCache.get(getCwd())
72 if (!parsed || parsed.host !== 'github.com') return null
73 return `${parsed.owner}/${parsed.name}`
74}
75
76/**
77 * Parses a git remote URL into host, owner, and name components.

Callers 1

fetchSingleFileGitDiffFunction · 0.85

Calls 2

getCwdFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected