summaryrefslogtreecommitdiff
path: root/app/controllers/refs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/refs_controller.rb')
-rw-r--r--app/controllers/refs_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb
index d3fc816bfd9..6a1a3606360 100644
--- a/app/controllers/refs_controller.rb
+++ b/app/controllers/refs_controller.rb
@@ -9,9 +9,9 @@ class RefsController < ProjectResourceController
before_filter :ref
before_filter :define_tree_vars, only: [:blob, :logs_tree]
- def switch
- respond_to do |format|
- format.html do
+ def switch
+ respond_to do |format|
+ format.html do
new_path = if params[:destination] == "tree"
project_tree_path(@project, @ref)
else