mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use Regexp#match instead of #match for 1.9 BASERUBY support
This commit is contained in:
parent
d2ba80b5df
commit
f0ded36693
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ class VCS
|
|||
end
|
||||
rev unless rev.empty?
|
||||
end
|
||||
unless /./.match?(from ||= branch_beginning(url))
|
||||
unless /./.match(from ||= branch_beginning(url))
|
||||
raise "cannot find the beginning revision of the branch"
|
||||
end
|
||||
range = [from, (to || 'HEAD')].join('^..')
|
||||
|
|
Loading…
Add table
Reference in a new issue