fix branch/tag select

This commit is contained in:
gitlabhq 2011-11-16 12:19:18 -05:00
parent f0b86c5f1e
commit bb35ef2f60
7 changed files with 29 additions and 6 deletions

View file

@ -8,6 +8,16 @@ class RefsController < ApplicationController
before_filter :authorize_read_project!
before_filter :require_non_empty_project
def switch
new_path = if params[:destination] == "tree"
tree_project_ref_path(@project, params[:ref])
else
project_commits_path(@project, :ref => params[:ref])
end
redirect_to new_path
end
#
# Repository preview
#