Detect VCS from the current directory by default [ci skip]
This commit is contained in:
parent
0d1af9f942
commit
75d9fa8b07
@ -127,7 +127,7 @@ class VCS
|
|||||||
@@dirs << [dir, self, pred]
|
@@dirs << [dir, self, pred]
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.detect(path, options = {}, argv = ::ARGV)
|
def self.detect(path = '.', options = {}, argv = ::ARGV)
|
||||||
uplevel_limit = options.fetch(:uplevel_limit, 0)
|
uplevel_limit = options.fetch(:uplevel_limit, 0)
|
||||||
curr = path
|
curr = path
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user