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/gitaly/service/repository/fullpath.go')
-rw-r--r--internal/gitaly/service/repository/fullpath.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/gitaly/service/repository/fullpath.go b/internal/gitaly/service/repository/fullpath.go
index 2f5194906..bc85a72a5 100644
--- a/internal/gitaly/service/repository/fullpath.go
+++ b/internal/gitaly/service/repository/fullpath.go
@@ -4,7 +4,7 @@ import (
"context"
"strings"
- "gitlab.com/gitlab-org/gitaly/v15/internal/errors"
+ gitalyerrors "gitlab.com/gitlab-org/gitaly/v15/internal/errors"
"gitlab.com/gitlab-org/gitaly/v15/internal/git"
"gitlab.com/gitlab-org/gitaly/v15/internal/helper"
"gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb"
@@ -19,7 +19,7 @@ func (s *server) SetFullPath(
request *gitalypb.SetFullPathRequest,
) (*gitalypb.SetFullPathResponse, error) {
if request.GetRepository() == nil {
- return nil, helper.ErrInvalidArgumentf("empty Repository")
+ return nil, helper.ErrInvalidArgument(gitalyerrors.ErrEmptyRepository)
}
if len(request.GetPath()) == 0 {
@@ -39,7 +39,7 @@ func (s *server) SetFullPath(
// "gitlab.fullpath" key.
func (s *server) FullPath(ctx context.Context, request *gitalypb.FullPathRequest) (*gitalypb.FullPathResponse, error) {
if request.GetRepository() == nil {
- return nil, helper.ErrInvalidArgument(errors.ErrEmptyRepository)
+ return nil, helper.ErrInvalidArgument(gitalyerrors.ErrEmptyRepository)
}
repo := s.localrepo(request.GetRepository())