fixed branch switch for code view

This commit is contained in:
Dmitriy Zaporozhets 2012-02-05 12:23:14 +02:00
parent 8ebfae9a07
commit 0f83558bea

View file

@ -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])