diff options
Diffstat (limited to 'internal/command')
-rw-r--r-- | internal/command/receivepack/customaction.go | 4 | ||||
-rw-r--r-- | internal/command/receivepack/customaction_test.go | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/internal/command/receivepack/customaction.go b/internal/command/receivepack/customaction.go index 7575ee9..6693d23 100644 --- a/internal/command/receivepack/customaction.go +++ b/internal/command/receivepack/customaction.go @@ -7,9 +7,7 @@ import ( "io" "io/ioutil" "net/http" - "strings" - "gitlab.com/gitlab-org/gitlab-shell/internal/console" "gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet" "gitlab.com/gitlab-org/gitlab-shell/internal/gitlabnet/accessverifier" ) @@ -33,8 +31,6 @@ func (c *Command) processCustomAction(response *accessverifier.Response) error { return errors.New("Custom action error: Empty API endpoints") } - console.DisplayInfoMessages(strings.Split(data.InfoMessage, "\n"), c.ReadWriter.ErrOut) - return c.processApiEndpoints(response) } diff --git a/internal/command/receivepack/customaction_test.go b/internal/command/receivepack/customaction_test.go index 11e7dce..c55a8f3 100644 --- a/internal/command/receivepack/customaction_test.go +++ b/internal/command/receivepack/customaction_test.go @@ -41,7 +41,6 @@ func TestCustomReceivePack(t *testing.T) { "api_endpoints": []string{"/geo/proxy_git_push_ssh/info_refs", "/geo/proxy_git_push_ssh/push"}, "gl_username": "custom", "primary_repo": "https://repo/path", - "info_message": "info_message\none more message", }, }, } @@ -100,6 +99,5 @@ func TestCustomReceivePack(t *testing.T) { // expect printing of info message, "custom" string from the first request // and "output" string from the second request - require.Equal(t, "remote: \nremote: info_message\nremote: one more message\nremote: \n", errBuf.String()) require.Equal(t, "customoutput", outBuf.String()) } |