fix for branch names with '/'
This commit is contained in:
parent
c226558644
commit
79bcdfb8d7
|
@ -41,14 +41,19 @@ Gitlab::Application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
member do
|
member do
|
||||||
get "tree", :constraints => { :id => /[a-zA-Z.0-9_\-]+/ }
|
get "tree", :constraints => { :id => /[a-zA-Z.\/0-9_\-]+/ }
|
||||||
get "blob"
|
get "blob",
|
||||||
|
:constraints => {
|
||||||
|
:id => /[a-zA-Z.0-9\/_\-]+/,
|
||||||
|
:path => /.*/
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# tree viewer
|
# tree viewer
|
||||||
get "tree/:path" => "refs#tree",
|
get "tree/:path" => "refs#tree",
|
||||||
:as => :tree_file,
|
:as => :tree_file,
|
||||||
:constraints => {
|
:constraints => {
|
||||||
:id => /[a-zA-Z.0-9_\-]+/,
|
:id => /[a-zA-Z.0-9\/_\-]+/,
|
||||||
:path => /.*/
|
:path => /.*/
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue