зеркало из https://github.com/github/ruby.git
Make tool/vcs.rb compliant to BASERUBY
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.
This commit is contained in:
Родитель
e1f62d7f0e
Коммит
6b5e712361
|
@ -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|
|
||||
|
|
Загрузка…
Ссылка в новой задаче