fixed branch switch for code view
This commit is contained in:
parent
8ebfae9a07
commit
0f83558bea
|
@ -64,6 +64,8 @@ class RefsController < ApplicationController
|
|||
protected
|
||||
|
||||
def define_tree_vars
|
||||
params[:path] = nil if params[:path].blank?
|
||||
|
||||
@repo = project.repo
|
||||
@commit = project.commit(@ref)
|
||||
@tree = Tree.new(@commit.tree, project, @ref, params[:path])
|
||||
|
|
Loading…
Reference in a new issue