Commit a5e1624359d9960782cd76f24c6300aeb28a2746
1 parent
8ae2d215
Exists in
spb-stable
and in
2 other branches
Redirect to tree view after branch created
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/projects/branches_controller.rb
... | ... | @@ -15,9 +15,9 @@ class Projects::BranchesController < Projects::ApplicationController |
15 | 15 | end |
16 | 16 | |
17 | 17 | def create |
18 | - CreateBranchService.new.execute(project, params[:branch_name], params[:ref], current_user) | |
18 | + @branch = CreateBranchService.new.execute(project, params[:branch_name], params[:ref], current_user) | |
19 | 19 | |
20 | - redirect_to project_branches_path(@project) | |
20 | + redirect_to project_tree_path(@project, @branch.name) | |
21 | 21 | end |
22 | 22 | |
23 | 23 | def destroy | ... | ... |