Fix #446.
This commit is contained in:
@@ -91,7 +91,11 @@ module Gollum
|
|||||||
fullpath = ::File.join(*[@wiki.page_file_dir, dir, path].compact)
|
fullpath = ::File.join(*[@wiki.page_file_dir, dir, path].compact)
|
||||||
fullpath = fullpath[1..-1] if fullpath =~ /^\//
|
fullpath = fullpath[1..-1] if fullpath =~ /^\//
|
||||||
|
|
||||||
if index.current_tree && tree = index.current_tree / (@wiki.page_file_dir || '/') / dir
|
if index.current_tree && tree = index.current_tree / (@wiki.page_file_dir || '/')
|
||||||
|
tree = tree / dir unless tree.nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
if tree
|
||||||
downpath = path.downcase.sub(/\.\w+$/, '')
|
downpath = path.downcase.sub(/\.\w+$/, '')
|
||||||
|
|
||||||
tree.blobs.each do |blob|
|
tree.blobs.each do |blob|
|
||||||
|
|||||||
Reference in New Issue
Block a user