Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/sourcegraph/checkup
/ pathForGitRepo
Function
pathForGitRepo
storage/github/github_test.go:50–52 ·
view source on GitHub ↗
(path string)
Source
from the content-addressed store, hash-verified
48
}
49
50
func
pathForGitRepo(path string) string {
51
return
strings.TrimPrefix(path,
"/"
)
52
}
53
54
func
pathForIndex(path string) string {
55
return
filepath.Base(path)
Callers
1
withGitHubServer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected