1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

make-snapshot: Regexp#match raises on nil now

This commit is contained in:
Nobuyoshi Nakada 2019-10-22 21:05:52 +09:00
parent 501b517dfb
commit ed3333f873
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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