don't modify path names in cached wiki treemaps

This commit is contained in:
rick
2010-08-24 11:47:02 -07:00
parent d606511fdf
commit 068a902a00
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ module Gollum
checked = name.downcase
map = @wiki.tree_map_for(version)
sha = @wiki.ref_map[version] || version
if pair = map.detect { |(path, _)| path == checked }
if pair = map.detect { |(path, _)| path.downcase == checked }
@path = name
@blob = Grit::Blob.create(@wiki.repo, :id => pair.last, :name => ::File.basename(@path))
@version = Grit::Commit.create(@wiki.repo, :id => sha)
-1
View File
@@ -418,7 +418,6 @@ module Gollum
path.gsub!(/\\\d{3}/) { |m| m[1..-1].to_i(8).chr }
end
path.gsub!(/\\[rn"\\]/) { |m| eval(%("#{m.to_s}")) }
path.downcase!
path
end