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/service/repository/archive.go')
-rw-r--r--internal/service/repository/archive.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/service/repository/archive.go b/internal/service/repository/archive.go
index 2848910f7..a41ff090d 100644
--- a/internal/service/repository/archive.go
+++ b/internal/service/repository/archive.go
@@ -84,7 +84,8 @@ func validateGetArchivePrecondition(ctx context.Context, in *gitalypb.GetArchive
return err
}
- treeEntry, err := commit.TreeEntryForRevisionAndPath(c, in.GetCommitId(), strings.TrimRight(path, "/"))
+ tef := commit.NewTreeEntryFinder(c)
+ treeEntry, err := tef.TreeEntryForRevisionAndPath(in.GetCommitId(), strings.TrimRight(path, "/"))
if err != nil {
return err
}