Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-15 06:10:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-15 06:10:12 +0300
commitfa6089d8ad89cc12adb7dbcd78594b97f8f6ed02 (patch)
tree9be269e7738972709207fdc0e1c4d505b0834c74 /lib/gitlab/deploy_key_access.rb
parentf68b31bd2c8812f4aa3654c6ab7271578c2ceea4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/deploy_key_access.rb')
-rw-r--r--lib/gitlab/deploy_key_access.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/deploy_key_access.rb b/lib/gitlab/deploy_key_access.rb
index 97fd6db407b..ca16582d2b4 100644
--- a/lib/gitlab/deploy_key_access.rb
+++ b/lib/gitlab/deploy_key_access.rb
@@ -8,6 +8,10 @@ module Gitlab
@container = container
end
+ def can_push_for_ref?(ref)
+ can_push_to_branch?(ref)
+ end
+
private
attr_reader :deploy_key