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

@ -36,15 +36,19 @@ Gitlab::Application.routes.draw do
end
resources :refs, :only => [], :path => "/" do
collection do
get "switch"
end
member do
get "tree"
get "tree", :constraints => { :id => /[a-zA-Z.0-9_\-]+/ }
get "blob"
# tree viewer
get "tree/:path" => "refs#tree",
:as => :tree_file,
:constraints => {
:id => /[a-zA-Z0-9_\-]+/,
:id => /[a-zA-Z.0-9_\-]+/,
:path => /.*/
}
end