diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-11 18:40:45 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-11 18:40:45 +0800 |
commit | b14d40f0b0b46aba95d15b139345674c6a3dbd09 (patch) | |
tree | 888ae7f8480644a38885644e319bc908a218a47a /config/routes.rb | |
parent | f601ec54fcfad7f365d3488c0a48575862c48958 (diff) | |
download | gitlab-ce-b14d40f0b0b46aba95d15b139345674c6a3dbd09.tar.gz |
Handle branches with / in the name
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 0a4b8609252..5c1460b0e75 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -735,7 +735,8 @@ Rails.application.routes.draw do resources :artifacts, only: [] do collection do - get :search, path: ':ref/:build_name(/*path)', format: false + get :search, path: ':ref/:build_name/*path', format: false, + constraints: { ref: %r{.+(?=/)} } # ref could have / end end |