diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-17 14:12:16 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-03-17 16:44:15 +0100 |
commit | cc25c4c06c532eef592cb88440f271694faf97ef (patch) | |
tree | dd9ef986b2506078c153872015b018fa2573125f /app/services | |
parent | 7a623907528a77187e070c9721469df8bdd00ec8 (diff) | |
download | gitlab-ce-cc25c4c06c532eef592cb88440f271694faf97ef.tar.gz |
Allow creating merge request even if target branch is not specified in query params
Closes #28890
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/merge_requests/build_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/merge_requests/build_service.rb b/app/services/merge_requests/build_service.rb index 9d4739e37bb..fdce542bd9e 100644 --- a/app/services/merge_requests/build_service.rb +++ b/app/services/merge_requests/build_service.rb @@ -6,7 +6,7 @@ module MergeRequests merge_request.source_project = find_source_project merge_request.target_project = find_target_project merge_request.target_branch = find_target_branch - merge_request.can_be_created = branches_valid? && source_branch_specified? && target_branch_specified? + merge_request.can_be_created = branches_valid? compare_branches if branches_present? assign_title_and_description if merge_request.can_be_created |