An attempt to fix #1402
This commit is contained in:
parent
91d0d39569
commit
be98103e05
|
@ -37,7 +37,8 @@ module Middleman
|
||||||
end
|
end
|
||||||
|
|
||||||
# Recursive method to find a file in parent directories
|
# 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 cwd.to_s if (cwd + filename).exist?
|
||||||
return false if cwd.root?
|
return false if cwd.root?
|
||||||
findup(filename, cwd.parent)
|
findup(filename, cwd.parent)
|
||||||
|
|
Loading…
Reference in a new issue