lib/sdoc/github.rb in sdoc-2.5.0 vs lib/sdoc/github.rb in sdoc-2.6.0
- old
+ new
@@ -48,10 +48,10 @@
absolute_path[root.size..absolute_path.size]
end
def path_to_git_dir(path)
while !path.empty? && path != '.'
- if (File.exists? File.join(path, '.git'))
+ if (File.exist? File.join(path, '.git'))
return path
end
path = File.dirname(path)
end
''