summaryrefslogtreecommitdiff
path: root/internal/command/receivepack/receivepack.go
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2020-04-15 02:04:33 +0000
committerPatrick Bajao <ebajao@gitlab.com>2020-04-15 02:04:33 +0000
commit932e5d46a96bb1daebb9268789e765dda9f6d3ef (patch)
treee0b6d0a37d049dbd01e164a95dc0f8728d51d7e2 /internal/command/receivepack/receivepack.go
parent74bef786d44b270167c7f9dbb029d197fe32ac4f (diff)
parent40b3ddc142b906a79f22c726a0a61dd113c39485 (diff)
downloadgitlab-shell-932e5d46a96bb1daebb9268789e765dda9f6d3ef.tar.gz
Merge branch 'id-extract-custom-action-in-separate-module' into 'master'
Extract customaction into a separate module See merge request gitlab-org/gitlab-shell!370
Diffstat (limited to 'internal/command/receivepack/receivepack.go')
-rw-r--r--internal/command/receivepack/receivepack.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/command/receivepack/receivepack.go b/internal/command/receivepack/receivepack.go
index aaaf7b0..3af3941 100644
--- a/internal/command/receivepack/receivepack.go
+++ b/internal/command/receivepack/receivepack.go
@@ -4,6 +4,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/internal/command/commandargs"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/accessverifier"
+ "gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/customaction"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
)
@@ -27,7 +28,8 @@ func (c *Command) Execute() error {
}
if response.IsCustomAction() {
- return c.processCustomAction(response)
+ customAction := customaction.Command{c.Config, c.ReadWriter}
+ return customAction.Execute(response)
}
return c.performGitalyCall(response)