diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-13 12:24:55 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-13 12:24:55 +0900 |
commit | 75d9fa8b079c27c66ac1eabfae366df465244fc4 (patch) | |
tree | ce2b43a4ae0fd9fd15ccb9b2f0582d6ab57097aa /tool | |
parent | 0d1af9f942e391d8bf50a7ae2e6bb931542d541a (diff) | |
download | ruby-75d9fa8b079c27c66ac1eabfae366df465244fc4.tar.gz |
Detect VCS from the current directory by default [ci skip]
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/vcs.rb | 2 |
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 |