Redirect to tree view after branch created

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 8ae2d215
......@@ -15,9 +15,9 @@ class Projects::BranchesController < Projects::ApplicationController
end
def create
CreateBranchService.new.execute(project, params[:branch_name], params[:ref], current_user)
@branch = CreateBranchService.new.execute(project, params[:branch_name], params[:ref], current_user)
redirect_to project_branches_path(@project)
redirect_to project_tree_path(@project, @branch.name)
end
def destroy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册