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>2022-02-17 06:16:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-17 06:16:49 +0300
commitf4e1a3641efa287c3e3414b450d698fc80226592 (patch)
tree05d6aa3f9495520d14c0a28af702abda1d847f33 /app/services/post_receive_service.rb
parenteaec088dc5e9a164d2d163c63312ad1d6668e1d0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/post_receive_service.rb')
-rw-r--r--app/services/post_receive_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_receive_service.rb b/app/services/post_receive_service.rb
index f5638b0aa40..15c978e6763 100644
--- a/app/services/post_receive_service.rb
+++ b/app/services/post_receive_service.rb
@@ -86,7 +86,7 @@ class PostReceiveService
banner = nil
if project
- scoped_messages = BroadcastMessage.current_banner_messages(project.full_path).select do |message|
+ scoped_messages = BroadcastMessage.current_banner_messages(current_path: project.full_path).select do |message|
message.target_path.present? && message.matches_current_path(project.full_path)
end