summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorJonathon Reinhart <Jonathon.Reinhart@gmail.com>2018-12-13 00:01:02 -0500
committerJonathon Reinhart <Jonathon.Reinhart@gmail.com>2018-12-13 22:34:15 -0500
commitaf705c3f8c21ab34ba7cde8777b1e29e35b26a4c (patch)
treec2543b8e11a481ab2d64fda3e9e098db21de222d /lib/gitlab_net.rb
parent30a06eca35d38ac91c1f2beadb2443f37d28476b (diff)
downloadgitlab-shell-af705c3f8c21ab34ba7cde8777b1e29e35b26a4c.tar.gz
Use 'push_options' everywhere instead of 'push_opts'
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index a0e1f12..de262d8 100644
--- a/lib/gitlab_net.rb
+++ b/lib/gitlab_net.rb
@@ -119,12 +119,12 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
false
end
- def post_receive(gl_repository, identifier, changes, push_opts)
+ def post_receive(gl_repository, identifier, changes, push_options)
params = {
gl_repository: gl_repository,
identifier: identifier,
changes: changes,
- :"push_opts[]" => push_opts, # ruby <2.2 syntax
+ :"push_options[]" => push_options, # ruby <2.2 syntax
}
resp = post("#{internal_api_endpoint}/post_receive", params)