Commit 0f83558beae7df5b09befc53526d94d71787310b
1 parent
8ebfae9a
Exists in
master
and in
4 other branches
fixed branch switch for code view
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/controllers/refs_controller.rb
| ... | ... | @@ -64,6 +64,8 @@ class RefsController < ApplicationController |
| 64 | 64 | protected |
| 65 | 65 | |
| 66 | 66 | def define_tree_vars |
| 67 | + params[:path] = nil if params[:path].blank? | |
| 68 | + | |
| 67 | 69 | @repo = project.repo |
| 68 | 70 | @commit = project.commit(@ref) |
| 69 | 71 | @tree = Tree.new(@commit.tree, project, @ref, params[:path]) | ... | ... |