Fix branch name in case of new merge request cherry pick
This commit is contained in:
parent
83c9861071
commit
cab5039c91
|
|
@ -101,7 +101,7 @@ class Projects::CommitController < Projects::ApplicationController
|
|||
|
||||
@branch_name = create_new_branch? ? @commit.cherry_pick_branch_name : @start_branch
|
||||
|
||||
create_commit(Commits::CherryPickService, success_notice: "The #{@commit.change_type_title(current_user)} has been successfully cherry-picked into #{@start_branch}.",
|
||||
create_commit(Commits::CherryPickService, success_notice: "The #{@commit.change_type_title(current_user)} has been successfully cherry-picked into #{@branch_name}.",
|
||||
success_path: -> { successful_change_path }, failure_path: failed_change_path)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue