From 75d9fa8b079c27c66ac1eabfae366df465244fc4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 13 Aug 2019 12:24:55 +0900 Subject: Detect VCS from the current directory by default [ci skip] --- tool/lib/vcs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') 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 -- cgit v1.2.3