(t *testing.T, repo TestedRepo)
| 74 | } |
| 75 | |
| 76 | func 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 | } |