MCPcopy Create free account
hub / github.com/cli/cli / gitRepoPath

Function gitRepoPath

script/ghmock/gitfixture.go:44–49  ·  view source on GitHub ↗
(world, host, repo string)

Source from the content-addressed store, hash-verified

42}
43
44func gitRepoPath(world, host, repo string) string {
45 if host == mockHost || host == "ssh.github.com" {
46 host = dotcomHost
47 }
48 return filepath.Join(world, "repos", host, filepath.FromSlash(repo)+".git")
49}
50
51func (s *state) gitFixtureDir() string {
52 return filepath.Join(s.dir, filepath.FromSlash(gitFixture))

Callers 4

TestCmdRepoFunction · 0.85
serveGitHTTPMethod · 0.85
cmdGitSSHFunction · 0.85
cmdRepoFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by 1

TestCmdRepoFunction · 0.68