An attempt to fix #1402

This commit is contained in:
Thomas Reynolds 2014-11-09 11:30:11 -08:00
parent 91d0d39569
commit be98103e05

View file

@ -37,7 +37,8 @@ module Middleman
end
# Recursive method to find a file in parent directories
def findup(filename, cwd=Pathname.new(Dir.pwd))
def findup(filename, cwd=Dir.pwd)
cwd = Pathname(cwd)
return cwd.to_s if (cwd + filename).exist?
return false if cwd.root?
findup(filename, cwd.parent)