diff options
Diffstat (limited to 'internal/service/repository/archive.go')
-rw-r--r-- | internal/service/repository/archive.go | 3 |
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 } |