Skip to content
Snippets Groups Projects
Commit f5721841 authored by Douwe Maan's avatar Douwe Maan Committed by Timothy Andrew
Browse files

Merge branch 'patch-5' into 'master'

Update tree_helper.rb to fix #31784, which broken file browse where paths deeper than 6:'/'.

Closes #31784

See merge request !11197
parent 1a32193f
No related branches found
No related tags found
1 merge request!12258Update Prometheus Merge Request Metrics page
Pipeline #
Loading
Loading
@@ -81,7 +81,7 @@ module TreeHelper
part_path = ""
parts = @path.split('/')
 
yield('..', nil) if parts.count > max_links
yield('..', File.join(*parts.first(parts.count - 2))) if parts.count > max_links
 
parts.each do |part|
part_path = File.join(part_path, part) unless part_path.empty?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment