diff options
author | Steve Azzopardi <sazzopardi@gitlab.com> | 2022-07-21 17:13:47 +0300 |
---|---|---|
committer | Steve Azzopardi <sazzopardi@gitlab.com> | 2022-07-21 17:13:47 +0300 |
commit | e9718fb0e641d9a6515ab8994542646d73be2d9a (patch) | |
tree | 99ce14644e0054e900c8bd2ce30361a1f2d3afb2 | |
parent | dea8e1224650e39ed718485d738bb563be8e580e (diff) |
Revert "Merge branch..."
This reverts merge request !4735
-rw-r--r-- | internal/gitaly/service/ref/refs.go | 2 | ||||
-rw-r--r-- | internal/gitaly/service/ref/refs_test.go | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/internal/gitaly/service/ref/refs.go b/internal/gitaly/service/ref/refs.go index c8b1ba34d..19e532dc0 100644 --- a/internal/gitaly/service/ref/refs.go +++ b/internal/gitaly/service/ref/refs.go @@ -257,7 +257,7 @@ func (s *server) findTag(ctx context.Context, repo git.RepositoryExecutor, tagNa return nil, err } } else { - return nil, helper.ErrNotFoundf("no tag found") + return nil, errors.New("no tag found") } if err = tagCmd.Wait(); err != nil { diff --git a/internal/gitaly/service/ref/refs_test.go b/internal/gitaly/service/ref/refs_test.go index 2028563e9..aa4e0faff 100644 --- a/internal/gitaly/service/ref/refs_test.go +++ b/internal/gitaly/service/ref/refs_test.go @@ -1212,15 +1212,3 @@ func TestInvalidFindTagRequest(t *testing.T) { }) } } - -func TestNotFoundFindTagRequest(t *testing.T) { - t.Parallel() - - ctx := testhelper.Context(t) - _, repoProto, _, client := setupRefService(ctx, t) - - rpcRequest := &gitalypb.FindTagRequest{Repository: repoProto, TagName: []byte("not-found")} - - _, err := client.FindTag(ctx, rpcRequest) - testhelper.RequireGrpcError(t, err, helper.ErrNotFoundf("no tag found")) -} |