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)
|
||||
|
||||
Reference in New Issue
Block a user