diff options
author | Nick Thomas <nick@gitlab.com> | 2019-06-03 15:21:25 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-03 15:21:25 +0000 |
commit | 5ee3270e07b0f7cca8c2352816ea86a3b640a772 (patch) | |
tree | ddc0d81da81ebfdb2c05819c88cde2c56dbaf4d5 /go/internal/command/commandargs/command_args_test.go | |
parent | beb5855542645cdc9bf7f954b9c5a9333dfb3975 (diff) | |
parent | cde5b73cb8776c70c6d00ff34c568ea4438bcba9 (diff) | |
download | gitlab-shell-5ee3270e07b0f7cca8c2352816ea86a3b640a772.tar.gz |
Merge branch 'id-git-upload-pack' into 'master'
Go implementation for git-upload-pack
Closes #160
See merge request gitlab-org/gitlab-shell!305
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 01202c0..c3c6ff2 100644 --- a/go/internal/command/commandargs/command_args_test.go +++ b/go/internal/command/commandargs/command_args_test.go @@ -76,6 +76,13 @@ func TestParseSuccess(t *testing.T) { "SSH_ORIGINAL_COMMAND": `git-receive-pack group/repo; any command`, }, expectedArgs: &CommandArgs{SshArgs: []string{"git-receive-pack", "group/repo"}, CommandType: ReceivePack}, + }, { + desc: "It parses git-upload-pack command", + environment: map[string]string{ + "SSH_CONNECTION": "1", + "SSH_ORIGINAL_COMMAND": `git upload-pack "group/repo"`, + }, + expectedArgs: &CommandArgs{SshArgs: []string{"git-upload-pack", "group/repo"}, CommandType: UploadPack}, }, } |