aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-05-29 18:40:03 -0700
committerJeremy Evans <code@jeremyevans.net>2019-05-29 18:40:03 -0700
commitf0ded366933407cfd0ad2c516b69d2766d1634d2 (patch)
tree72cf909e0bfbc73c350e7aa0b5eafc430353be6a
parentd2ba80b5df7118383cbcfae934316310c6d81633 (diff)
downloadruby-f0ded366933407cfd0ad2c516b69d2766d1634d2.tar.gz
Use Regexp#match instead of #match for 1.9 BASERUBY support
-rw-r--r--tool/vcs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 808b28344e..f7a1a6470d 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -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('^..')