From 0f83558beae7df5b09befc53526d94d71787310b Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 5 Feb 2012 12:23:14 +0200 Subject: [PATCH] fixed branch switch for code view --- app/controllers/refs_controller.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index 0e062fc..16cde44 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]) -- libgit2 0.21.2