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:
Diffstat (limited to 'internal/git/catfile/batch.go')
-rw-r--r--internal/git/catfile/batch.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/git/catfile/batch.go b/internal/git/catfile/batch.go
index f4a8d125e..58bf98c30 100644
--- a/internal/git/catfile/batch.go
+++ b/internal/git/catfile/batch.go
@@ -12,7 +12,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"
)
@@ -35,14 +34,12 @@ type batchProcess struct {
sync.Mutex
}
-func newBatchProcess(ctx context.Context, locator storage.Locator, repo repository.GitRepo) (*batchProcess, error) {
- repoPath, err := locator.GetRepoPath(repo)
+func newBatchProcess(ctx context.Context, repo repository.GitRepo) (*batchProcess, error) {
+ repoPath, env, err := alternates.PathAndEnv(repo)
if err != nil {
return nil, err
}
- env := alternates.Env(repoPath, repo.GetGitObjectDirectory(), repo.GetGitAlternateObjectDirectories())
-
totalCatfileProcesses.Inc()
b := &batchProcess{}