Skip to content

Commit

Permalink
Make tool/vcs.rb compliant to BASERUBY
Browse files Browse the repository at this point in the history
People seem to consider BASERUBY is either 1.8 or 1.9 now. Since this
file may be executed by BASERUBY from file2lastrev.rb, I think we should
not rely on Ruby 2.0 in this file for now.
  • Loading branch information
k0kubun committed May 28, 2019
1 parent e1f62d7 commit 6b5e712
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/vcs.rb
Expand Up @@ -124,7 +124,8 @@ def self.register(dir, &pred)
@@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|
Expand Down

0 comments on commit 6b5e712

Please sign in to comment.