summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2020-07-02 12:20:11 +0000
committerIgor Drozdov <idrozdov@gitlab.com>2020-07-02 12:20:11 +0000
commitbb3133d078c876723ed6bf217a980613b05403be (patch)
tree7afd668bac9b29eae8e53614beb8587dbcbaa170
parente6a211544ef9abda2dbf4d943e786ffd9ca14193 (diff)
downloadgitlab-shell-test-merge-request-2.tar.gz
Test merge request 2test-merge-request-2
-rw-r--r--internal/command/lfsauthenticate/lfsauthenticate.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/command/lfsauthenticate/lfsauthenticate.go b/internal/command/lfsauthenticate/lfsauthenticate.go
index 2aaac2a..9cf415b 100644
--- a/internal/command/lfsauthenticate/lfsauthenticate.go
+++ b/internal/command/lfsauthenticate/lfsauthenticate.go
@@ -18,12 +18,6 @@ const (
uploadOperation = "upload"
)
-type Command struct {
- Config *config.Config
- Args *commandargs.Shell
- ReadWriter *readwriter.ReadWriter
-}
-
type PayloadHeader struct {
Auth string `json:"Authorization"`
}
@@ -65,21 +59,6 @@ func (c *Command) Execute() error {
return nil
}
-func actionFromOperation(operation string) (commandargs.CommandType, error) {
- var action commandargs.CommandType
-
- switch operation {
- case downloadOperation:
- action = commandargs.UploadPack
- case uploadOperation:
- action = commandargs.ReceivePack
- default:
- return "", disallowedcommand.Error
- }
-
- return action, nil
-}
-
func (c *Command) verifyAccess(action commandargs.CommandType, repo string) (*accessverifier.Response, error) {
cmd := accessverifier.Command{c.Config, c.Args, c.ReadWriter}