./lib/dolt/sinatra/actions.rb in dolt-0.4.2 vs ./lib/dolt/sinatra/actions.rb in dolt-0.4.3

- old
+ new

@@ -58,10 +58,10 @@ def tree(repo, ref, path) actions.tree(repo, ref, path) do |err, data| return error(err, repo, ref) if !err.nil? tree = data[:tree] - return redirect(blob_url(repo, ref, path)) if !tree.is_a?(Rugged::Tree) + return redirect(blob_url(repo, ref, path)) if tree.class.to_s !~ /\bTree/ response["Content-Type"] = "text/html" body(renderer.render(:tree, data)) end end