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