From 4f4acf4a1e523678355b06234016fa632bae282e Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Fri, 17 Apr 2020 16:23:12 +1000 Subject: Geo Pull custom action support --- internal/command/uploadpack/uploadpack.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/command/uploadpack/uploadpack.go') 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) } -- cgit v1.2.1