1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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