summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb3
1 files changed, 2 insertions, 1 deletions
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|