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>2019-10-09 18:05:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 18:05:58 +0300
commitcc6b394a063eb77c90505e4adca2e2da2e29c3a2 (patch)
tree94ec203489b9c800b832c7bd4f1b7aadc5a96958 /app/models/concerns/notification_branch_selection.rb
parent0a850868dfb85086cba8320cee9dac4657dcae6c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/concerns/notification_branch_selection.rb')
-rw-r--r--app/models/concerns/notification_branch_selection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/notification_branch_selection.rb b/app/models/concerns/notification_branch_selection.rb
index d8e18de7551..7f00b652530 100644
--- a/app/models/concerns/notification_branch_selection.rb
+++ b/app/models/concerns/notification_branch_selection.rb
@@ -21,7 +21,7 @@ module NotificationBranchSelection
end
is_default_branch = ref == project.default_branch
- is_protected_branch = project.protected_branches.exists?(name: ref)
+ is_protected_branch = ProtectedBranch.protected?(project, ref)
case branches_to_be_notified
when "all"