don't modify path names in cached wiki treemaps
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user