diff options
author | Patrick Bajao <ebajao@gitlab.com> | 2020-04-17 06:34:01 +0000 |
---|---|---|
committer | Patrick Bajao <ebajao@gitlab.com> | 2020-04-17 06:34:01 +0000 |
commit | f92a38ac01c05472b92876da3eb78933bdae3fde (patch) | |
tree | 17f7c90485d0a339e5ecb14fb6131a4c2636903d /internal/command/uploadpack/uploadpack.go | |
parent | 932e5d46a96bb1daebb9268789e765dda9f6d3ef (diff) | |
parent | 4f4acf4a1e523678355b06234016fa632bae282e (diff) | |
download | gitlab-shell-f92a38ac01c05472b92876da3eb78933bdae3fde.tar.gz |
Merge branch '202037-geo-ssh-clone-pull-redirect-to-primary-when-selective-sync-enabled-and-project-not-selected' into 'master'
Geo: Add custom action support for clone/pull
See merge request gitlab-org/gitlab-shell!369
Diffstat (limited to 'internal/command/uploadpack/uploadpack.go')
-rw-r--r-- | internal/command/uploadpack/uploadpack.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/command/uploadpack/uploadpack.go b/internal/command/uploadpack/uploadpack.go index a5c71b2..56814d7 100644 --- a/internal/command/uploadpack/uploadpack.go +++ b/internal/command/uploadpack/uploadpack.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" ) @@ -26,6 +27,15 @@ func (c *Command) Execute() error { return err } + if response.IsCustomAction() { + customAction := customaction.Command{ + Config: c.Config, + ReadWriter: c.ReadWriter, + EOFSent: false, + } + return customAction.Execute(response) + } + return c.performGitalyCall(response) } |