Detect VCS from the current directory by default [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-08-13 12:24:55 +09:00
parent 0d1af9f942
commit 75d9fa8b07
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

@ -127,7 +127,7 @@ class VCS
@@dirs << [dir, self, pred]
end
def self.detect(path, options = {}, argv = ::ARGV)
def self.detect(path = '.', options = {}, argv = ::ARGV)
uplevel_limit = options.fetch(:uplevel_limit, 0)
curr = path
begin