summaryrefslogtreecommitdiff
path: root/app/services/git/branch_push_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/git/branch_push_service.rb')
-rw-r--r--app/services/git/branch_push_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/git/branch_push_service.rb b/app/services/git/branch_push_service.rb
index da45bcc7eaa..5c1ee981d0c 100644
--- a/app/services/git/branch_push_service.rb
+++ b/app/services/git/branch_push_service.rb
@@ -36,6 +36,8 @@ module Git
# Update merge requests that may be affected by this push. A new branch
# could cause the last commit of a merge request to change.
def enqueue_update_mrs
+ return if params[:merge_request_branches]&.exclude?(branch_name)
+
UpdateMergeRequestsWorker.perform_async(
project.id,
current_user.id,