Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzjin <tczzjin@gmail.com>2017-05-09 06:57:15 +0300
committerzzjin <tczzjin@gmail.com>2017-05-09 06:57:15 +0300
commite9ba667282674bce875934be8aae6588d0bd69e3 (patch)
treec979492ab876e22e7e72dd40a04a8b94cc415441 /app/helpers/tree_helper.rb
parent9ada13d343a4736275d2c026ee980abe5c5e5763 (diff)
Update tree_helper.rb to fix #31784, which broken file browse where paths deeper than 6:'/'.
Diffstat (limited to 'app/helpers/tree_helper.rb')
-rw-r--r--app/helpers/tree_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb
index a91e3da309c..3da58a91d53 100644
--- a/app/helpers/tree_helper.rb
+++ b/app/helpers/tree_helper.rb
@@ -81,7 +81,7 @@ module TreeHelper
part_path = ""
parts = @path.split('/')
- yield('..', nil) if parts.count > max_links
+ yield('..', parts) if parts.count > max_links
parts.each do |part|
part_path = File.join(part_path, part) unless part_path.empty?