ruby-changes:58360
From: Nobuyoshi <ko1@a...>
Date: Tue, 22 Oct 2019 21:06:46 +0900 (JST)
Subject: [ruby-changes:58360] ed3333f873 (master): make-snapshot: Regexp#match raises on nil now
https://git.ruby-lang.org/ruby.git/commit/?id=ed3333f873 From ed3333f8736e054a2199a3b77e553b858c5fc7e6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 22 Oct 2019 21:05:52 +0900 Subject: make-snapshot: Regexp#match raises on nil now diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 370530d..1868553 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -605,7 +605,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L605 end rev unless rev.empty? end - unless /./.match(from) or /./.match(from = branch_beginning(url)) + unless (from && /./.match(from)) or ((from = branch_beginning(url)) && /./.match(from)) warn "no starting commit found", uplevel: 1 from = nil end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/