Commit a5e16243 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Redirect to tree view after branch created

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8ae2d215
...@@ -15,9 +15,9 @@ class Projects::BranchesController < Projects::ApplicationController ...@@ -15,9 +15,9 @@ class Projects::BranchesController < Projects::ApplicationController
end end
def create 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 end
def destroy def destroy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment