aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--repository/gogit_test.go6
-rw-r--r--repository/gogit_testing.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/repository/gogit_test.go b/repository/gogit_test.go
index 5d3378b7..a3de0a03 100644
--- a/repository/gogit_test.go
+++ b/repository/gogit_test.go
@@ -12,13 +12,13 @@ import (
func TestNewGoGitRepo(t *testing.T) {
// Plain
plainRepo := CreateGoGitTestRepo(t, false)
- plainRoot := RepoDir(t, plainRepo)
+ plainRoot := goGitRepoDir(t, plainRepo)
require.NoError(t, plainRepo.Close())
plainGitDir := filepath.Join(plainRoot, ".git")
// Bare
bareRepo := CreateGoGitTestRepo(t, true)
- bareRoot := RepoDir(t, bareRepo)
+ bareRoot := goGitRepoDir(t, bareRepo)
require.NoError(t, bareRepo.Close())
bareGitDir := bareRoot
@@ -62,7 +62,7 @@ func TestGoGitRepo(t *testing.T) {
func TestGoGitRepo_Indexes(t *testing.T) {
repo := CreateGoGitTestRepo(t, false)
- plainRoot := RepoDir(t, repo)
+ plainRoot := goGitRepoDir(t, repo)
// Can create indices
indexA, err := repo.GetBleveIndex("a")
diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go
index 3e6f72fc..afbb917f 100644
--- a/repository/gogit_testing.go
+++ b/repository/gogit_testing.go
@@ -70,7 +70,7 @@ func SetupGoGitReposAndRemote(t *testing.T) (repoA, repoB, remote TestedRepo) {
return repoA, repoB, remote
}
-func RepoDir(t *testing.T, repo TestedRepo) string {
+func goGitRepoDir(t *testing.T, repo TestedRepo) string {
t.Helper()
dir := repo.GetLocalRemote()