summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-13 12:24:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-13 12:24:55 +0900
commit75d9fa8b079c27c66ac1eabfae366df465244fc4 (patch)
treece2b43a4ae0fd9fd15ccb9b2f0582d6ab57097aa /tool
parent0d1af9f942e391d8bf50a7ae2e6bb931542d541a (diff)
Detect VCS from the current directory by default [ci skip]
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/vcs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 0a3d54cc6f..9a90a04119 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -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