Fix searching in page_dir if it exists

This bug can cause DuplicateError even there is no such file

in page_dir
This commit is contained in:
Jeong, Heon
2012-05-19 14:43:30 +09:00
committed by Neon
parent 8b5dfff2a1
commit 9ee9e61312
+1 -1
View File
@@ -91,7 +91,7 @@ module Gollum
fullpath = ::File.join(*[@wiki.page_file_dir, dir, path].compact)
fullpath = fullpath[1..-1] if fullpath =~ /^\//
if index.current_tree && tree = index.current_tree / dir
if index.current_tree && tree = index.current_tree / (@wiki.page_file_dir || '/') / dir
downpath = path.downcase.sub(/\.\w+$/, '')
tree.blobs.each do |blob|