diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-05 14:42:35 +0300 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-13 15:40:05 +0300 |
commit | 81da7f137807a9f8c35b6c96b6034975558ddf97 (patch) | |
tree | 6c2c67a840c2dded05dc31db025beac5549a83eb /app | |
parent | 31c37c6c38258684fc92e0d91119c33872e39034 (diff) |
Add test checking method closed_without_source_project
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/merge_requests_controller.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/controllers/projects/merge_requests_controller.rb b/app/controllers/projects/merge_requests_controller.rb index 479b2d1d900..aa8645ba8cc 100644 --- a/app/controllers/projects/merge_requests_controller.rb +++ b/app/controllers/projects/merge_requests_controller.rb @@ -428,17 +428,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController end def validates_merge_request - # If source project was removed (Ex. mr from fork to origin) - # return invalid_mr unless @merge_request.source_project - # Show git not found page # if there is no saved commits between source & target branch if @merge_request.commits.blank? # and if target branch doesn't exist return invalid_mr unless @merge_request.target_branch_exists? - - # or if source branch doesn't exist - # return invalid_mr unless @merge_request.source_branch_exists? end end |