diff options
author | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2018-12-13 00:01:02 -0500 |
---|---|---|
committer | Jonathon Reinhart <Jonathon.Reinhart@gmail.com> | 2018-12-13 22:34:15 -0500 |
commit | af705c3f8c21ab34ba7cde8777b1e29e35b26a4c (patch) | |
tree | c2543b8e11a481ab2d64fda3e9e098db21de222d /lib/gitlab_post_receive.rb | |
parent | 30a06eca35d38ac91c1f2beadb2443f37d28476b (diff) | |
download | gitlab-shell-af705c3f8c21ab34ba7cde8777b1e29e35b26a4c.tar.gz |
Use 'push_options' everywhere instead of 'push_opts'
Diffstat (limited to 'lib/gitlab_post_receive.rb')
-rw-r--r-- | lib/gitlab_post_receive.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab_post_receive.rb b/lib/gitlab_post_receive.rb index 5dd9955..2d412b9 100644 --- a/lib/gitlab_post_receive.rb +++ b/lib/gitlab_post_receive.rb @@ -8,19 +8,19 @@ require 'securerandom' class GitlabPostReceive attr_reader :config, :gl_repository, :repo_path, :changes, :jid - def initialize(gl_repository, repo_path, actor, changes, push_opts) + def initialize(gl_repository, repo_path, actor, changes, push_options) @config = GitlabConfig.new @gl_repository = gl_repository @repo_path = repo_path.strip @actor = actor @changes = changes - @push_opts = push_opts + @push_options = push_options @jid = SecureRandom.hex(12) end def exec response = GitlabMetrics.measure("post-receive") do - api.post_receive(gl_repository, @actor, changes, @push_opts) + api.post_receive(gl_repository, @actor, changes, @push_options) end return false unless response |