diff options
author | Stan Hu <stanhu@gmail.com> | 2015-04-26 21:46:27 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-04-26 23:52:40 -0700 |
commit | ef0055b52d85bb9f38c36303d2291ab2a29d0780 (patch) | |
tree | 62d36d392c6839c606d611cdb50927129c7bf115 /config | |
parent | 439b9f50af3168d33169a4cd25b59e45ea46dc62 (diff) | |
download | gitlab-ce-ef0055b52d85bb9f38c36303d2291ab2a29d0780.tar.gz |
Fix bug where commit data would not appear in some subdirectories
The upgrade from Rails v4.1.2 to v4.1.9 (76aad9b76ed) caused slashes in a tree to be escaped automatically.
Using wildcard globs prevents this behavior.
Closes #1478, #1459
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index e059f5830f5..4b38dede7b4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -435,7 +435,7 @@ Gitlab::Application.routes.draw do member do # tree viewer logs get 'logs_tree', constraints: { id: Gitlab::Regex.git_reference_regex } - get 'logs_tree/:path' => 'refs#logs_tree', as: :logs_file, constraints: { + get 'logs_tree/*path' => 'refs#logs_tree', as: :logs_file, constraints: { id: Gitlab::Regex.git_reference_regex, path: /.*/ } |