diff options
Diffstat (limited to 'app/controllers/projects/commit_controller.rb')
-rw-r--r-- | app/controllers/projects/commit_controller.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/controllers/projects/commit_controller.rb b/app/controllers/projects/commit_controller.rb index d996b0f4ca7..21579b5629d 100644 --- a/app/controllers/projects/commit_controller.rb +++ b/app/controllers/projects/commit_controller.rb @@ -93,10 +93,13 @@ class Projects::CommitController < Projects::ApplicationController end def assign_revert_commit_vars + @commit = project.commit(params[:id]) @target_branch = params[:target_branch] - + @mr_source_branch = @commit.revert_branch_name + @mr_target_branch = @target_branch @commit_params = { - revert_commit_id: params[:id], + commit: @commit, + create_merge_request: params[:create_merge_request].present? || different_project? } end end |