diff options
author | Jacob Carlborg <jacob.carlborg@tretti.se> | 2013-11-28 12:45:35 +0400 |
---|---|---|
committer | Jacob Carlborg <doob@me.com> | 2014-02-25 01:06:25 +0400 |
commit | 9439cb55260185b4a456982613f657f3c1b11915 (patch) | |
tree | cff49cb624021d9508b7dc390ad0573e46225c21 /app/helpers | |
parent | 504777ec20f006fd92cc948c03d35df3e1df4d3b (diff) |
By default, target original repository if fork when creating new MR.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/merge_requests_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/merge_requests_helper.rb b/app/helpers/merge_requests_helper.rb index 62f061bb079..b8285d43302 100644 --- a/app/helpers/merge_requests_helper.rb +++ b/app/helpers/merge_requests_helper.rb @@ -1,8 +1,9 @@ module MergeRequestsHelper def new_mr_path_from_push_event(event) + target_project = event.project.forked_from_project || event.project new_project_merge_request_path( event.project, - new_mr_from_push_event(event, event.project) + new_mr_from_push_event(event, target_project) ) end |