diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index 0e062fc669768f389fa2a0a800511195ce55ff42..16cde44fd89cc815e39f3e8bc212f8f943bed88d 100644 --- a/app/controllers/refs_controller.rb +++ b/app/controllers/refs_controller.rb @@ -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])