file name overflow fixed

This commit is contained in:
gitlabhq 2011-11-22 07:50:47 -05:00
parent a59b709021
commit 3f0d807955
6 changed files with 17 additions and 3 deletions

View file

@ -6,6 +6,8 @@ class TreeDecorator < ApplicationDecorator
part_path = ""
parts = path.split("\/")
parts = parts[0...-1] if is_blob?
yield(h.link_to("..", "#", :remote => :true)) if parts.count > max_links
parts.each do |part|