Commit 0f83558b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fixed branch switch for code view

parent 8ebfae9a
......@@ -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])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment