summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks/change_access.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-05 09:35:58 +0200
committerRémy Coutable <remy@rymai.me>2017-04-10 16:10:18 +0200
commit3de11e1a00868c95e71db64bc4b2b0f079f0f4d0 (patch)
tree7e27fff52007ee24feac09b33966f5b68674a4a5 /lib/gitlab/checks/change_access.rb
parentae88355bb87f4693603113ee16e4920d2d092f1e (diff)
downloadgitlab-ce-3de11e1a00868c95e71db64bc4b2b0f079f0f4d0.tar.gz
Don't pass `env` anymore to GitAccess, ChangeAccess, and ForcePushbackport-ee-1525
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/gitlab/checks/change_access.rb')
-rw-r--r--lib/gitlab/checks/change_access.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/checks/change_access.rb b/lib/gitlab/checks/change_access.rb
index eb2f2e144fd..8793b20aa35 100644
--- a/lib/gitlab/checks/change_access.rb
+++ b/lib/gitlab/checks/change_access.rb
@@ -5,7 +5,7 @@ module Gitlab
attr_reader :user_access, :project, :skip_authorization, :protocol
def initialize(
- change, user_access:, project:, env: {}, skip_authorization: false,
+ change, user_access:, project:, skip_authorization: false,
protocol:
)
@oldrev, @newrev, @ref = change.values_at(:oldrev, :newrev, :ref)
@@ -13,7 +13,6 @@ module Gitlab
@tag_name = Gitlab::Git.tag_name(@ref)
@user_access = user_access
@project = project
- @env = env
@skip_authorization = skip_authorization
@protocol = protocol
end
@@ -97,7 +96,7 @@ module Gitlab
end
def forced_push?
- Gitlab::Checks::ForcePush.force_push?(@project, @oldrev, @newrev, env: @env)
+ Gitlab::Checks::ForcePush.force_push?(@project, @oldrev, @newrev)
end
def update?