Commit 0f83558beae7df5b09befc53526d94d71787310b

Authored by Dmitriy Zaporozhets
1 parent 8ebfae9a

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