summaryrefslogtreecommitdiff
path: root/go/internal/command/command.go
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-06-05 15:53:33 +0000
committerNick Thomas <nick@gitlab.com>2019-06-05 15:53:33 +0000
commit60e258e32b5df579136ba3cf10f7f07eb8206415 (patch)
treea425982099197962547ce903899d2456434736a6 /go/internal/command/command.go
parentf61185b8a8f8974225a701137ba4b75cf5d4c4ef (diff)
downloadgitlab-shell-60e258e32b5df579136ba3cf10f7f07eb8206415.tar.gz
Go implementation for git-upload-archive
Diffstat (limited to 'go/internal/command/command.go')
-rw-r--r--go/internal/command/command.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/internal/command/command.go b/go/internal/command/command.go
index 8b02f16..7bc1994 100644
--- a/go/internal/command/command.go
+++ b/go/internal/command/command.go
@@ -7,6 +7,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/twofactorrecover"
+ "gitlab.com/gitlab-org/gitlab-shell/go/internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/go/internal/config"
)
@@ -41,6 +42,8 @@ func buildCommand(args *commandargs.CommandArgs, config *config.Config, readWrit
return &receivepack.Command{Config: config, Args: args, ReadWriter: readWriter}
case commandargs.UploadPack:
return &uploadpack.Command{Config: config, Args: args, ReadWriter: readWriter}
+ case commandargs.UploadArchive:
+ return &uploadarchive.Command{Config: config, Args: args, ReadWriter: readWriter}
}
return nil