From ed3333f8736e054a2199a3b77e553b858c5fc7e6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 22 Oct 2019 21:05:52 +0900 Subject: [PATCH] make-snapshot: Regexp#match raises on nil now --- tool/lib/vcs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 370530d53f..1868553e74 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -605,7 +605,7 @@ class VCS 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