Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-03-01 12:48:53 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-03-01 12:48:53 +0300
commitbe99c5da09c2847ebd4b32584aba24448a394e8b (patch)
tree0cfd2370b4ee4fb9930b93bb557ff4e8a89857f8 /internal/gitaly/service/repository/fetch_test.go
parent141c3b4899804abd9d2bab26a5fe55497e54e1e8 (diff)
testhelper: Move repository helpers into `gittest`
It's currently not possible to use our git DSL in the testhelper package because of an import cycle between the testhelper and git package. To fix this import cycle, we thus move test-related git helpers into the gittest package. This commit moves the repository helpers. As we're already touching all sites which use these helpers anyway, it also aligns functions to have more consistent naming.
Diffstat (limited to 'internal/gitaly/service/repository/fetch_test.go')
-rw-r--r--internal/gitaly/service/repository/fetch_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/repository/fetch_test.go b/internal/gitaly/service/repository/fetch_test.go
index dbe74c69b..d22cdb51b 100644
--- a/internal/gitaly/service/repository/fetch_test.go
+++ b/internal/gitaly/service/repository/fetch_test.go
@@ -320,7 +320,7 @@ func TestFetchFullServerRequiresAuthentication(t *testing.T) {
}
func newTestRepo(t *testing.T, locator storage.Locator, relativePath string) (*gitalypb.Repository, string, func()) {
- _, testRepoPath, cleanupFn := testhelper.NewTestRepo(t)
+ _, testRepoPath, cleanupFn := gittest.CloneRepo(t)
defer cleanupFn()
repo := &gitalypb.Repository{StorageName: "default", RelativePath: relativePath}