diff options
Diffstat (limited to 'internal/git/catfile/batchcheck.go')
-rw-r--r-- | internal/git/catfile/batchcheck.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/git/catfile/batchcheck.go b/internal/git/catfile/batchcheck.go index f11075de7..28afdd9b7 100644 --- a/internal/git/catfile/batchcheck.go +++ b/internal/git/catfile/batchcheck.go @@ -11,7 +11,6 @@ import ( "gitlab.com/gitlab-org/gitaly/internal/git" "gitlab.com/gitlab-org/gitaly/internal/git/alternates" "gitlab.com/gitlab-org/gitaly/internal/git/repository" - "gitlab.com/gitlab-org/gitaly/internal/storage" "gitlab.com/gitlab-org/labkit/correlation" ) @@ -22,14 +21,12 @@ type batchCheck struct { sync.Mutex } -func newBatchCheck(ctx context.Context, locator storage.Locator, repo repository.GitRepo) (*batchCheck, error) { - repoPath, err := locator.GetRepoPath(repo) +func newBatchCheck(ctx context.Context, repo repository.GitRepo) (*batchCheck, error) { + repoPath, env, err := alternates.PathAndEnv(repo) if err != nil { return nil, err } - env := alternates.Env(repoPath, repo.GetGitObjectDirectory(), repo.GetGitAlternateObjectDirectories()) - bc := &batchCheck{} var stdinReader io.Reader |