diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-22 21:05:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-22 21:05:52 +0900 |
commit | ed3333f8736e054a2199a3b77e553b858c5fc7e6 (patch) | |
tree | d91e6bae302784707bac3109e8a81b04ef022d6b /tool | |
parent | 501b517dfbab2a552e68da2da30682261b134156 (diff) | |
download | ruby-ed3333f8736e054a2199a3b77e553b858c5fc7e6.tar.gz |
make-snapshot: Regexp#match raises on nil now
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/vcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |