diff --git a/tool/vcs.rb b/tool/vcs.rb index 34bafa72ac..ecb313d58d 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -124,7 +124,8 @@ class VCS @@dirs << [dir, self, pred] end - def self.detect(path, uplevel_limit: 0) + def self.detect(path, options = {}) + uplevel_limit = options.fetch(:uplevel_limit, 0) curr = path begin @@dirs.each do |dir, klass, pred|