diff options
author | Nick Thomas <nick@gitlab.com> | 2019-06-05 15:53:33 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-05 15:53:33 +0000 |
commit | eb2b186f7d209a638b7523c674bc79cbafe764b6 (patch) | |
tree | a425982099197962547ce903899d2456434736a6 /go/internal/command/commandargs/command_args_test.go | |
parent | f61185b8a8f8974225a701137ba4b75cf5d4c4ef (diff) | |
parent | 60e258e32b5df579136ba3cf10f7f07eb8206415 (diff) | |
download | gitlab-shell-eb2b186f7d209a638b7523c674bc79cbafe764b6.tar.gz |
Merge branch 'id-git-upload-archive' into 'master'
Go implementation for git-upload-archive
Closes #162
See merge request gitlab-org/gitlab-shell!307
Diffstat (limited to 'go/internal/command/commandargs/command_args_test.go')
-rw-r--r-- | go/internal/command/commandargs/command_args_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/go/internal/command/commandargs/command_args_test.go b/go/internal/command/commandargs/command_args_test.go index c3c6ff2..7c360ad 100644 --- a/go/internal/command/commandargs/command_args_test.go +++ b/go/internal/command/commandargs/command_args_test.go @@ -83,6 +83,13 @@ func TestParseSuccess(t *testing.T) { "SSH_ORIGINAL_COMMAND": `git upload-pack "group/repo"`, }, expectedArgs: &CommandArgs{SshArgs: []string{"git-upload-pack", "group/repo"}, CommandType: UploadPack}, + }, { + desc: "It parses git-upload-archive command", + environment: map[string]string{ + "SSH_CONNECTION": "1", + "SSH_ORIGINAL_COMMAND": "git-upload-archive 'group/repo'", + }, + expectedArgs: &CommandArgs{SshArgs: []string{"git-upload-archive", "group/repo"}, CommandType: UploadArchive}, }, } |