diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-28 22:26:17 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-28 22:26:17 -0800 |
commit | 6d23be22d907ad8328169d36712ea36d36107b93 (patch) | |
tree | 02ed9623c4934fa53f2e0f81669d1e860e0515b5 | |
parent | dc2cfad49dfb383b9b64784e6dfd90f25479803b (diff) | |
download | gitlab-shell-6d23be22d907ad8328169d36712ea36d36107b93.tar.gz |
Fix gitlab-shell access for any kind of branchv2.4.2
-rw-r--r-- | lib/gitlab_net.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index 0911583..c178927 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -11,10 +11,11 @@ class GitlabNet project_name = repo.gsub("'", "") project_name = project_name.gsub(/\.git\Z/, "") project_name = project_name.gsub(/\A\//, "") + changes = changes.join("\n") unless changes.kind_of?(String) params = { action: cmd, - changes: changes.join("\n"), + changes: changes, project: project_name, } |