MCPcopy Create free account
hub / github.com/git-bug/git-bug / goGitRepoDir

Function goGitRepoDir

repository/gogit_testing.go:76–89  ·  view source on GitHub ↗
(t *testing.T, repo TestedRepo)

Source from the content-addressed store, hash-verified

74}
75
76func goGitRepoDir(t *testing.T, repo TestedRepo) string {
77 t.Helper()
78
79 dir := repo.GetLocalRemote()
80 if strings.HasSuffix(dir, ".git") {
81 dir, _ = filepath.Split(dir)
82 }
83
84 if dir[len(dir)-1] == filepath.Separator {
85 dir = dir[:len(dir)-1]
86 }
87
88 return dir
89}

Callers 3

TestNewGoGitRepoFunction · 0.85
TestGoGitRepo_IndexesFunction · 0.85

Calls 2

HelperMethod · 0.80
GetLocalRemoteMethod · 0.65

Tested by 3

TestNewGoGitRepoFunction · 0.68
TestGoGitRepo_IndexesFunction · 0.68