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:
parent
501b517dfb
commit
ed3333f873
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ class VCS
|
||||||
end
|
end
|
||||||
rev unless rev.empty?
|
rev unless rev.empty?
|
||||||
end
|
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
|
warn "no starting commit found", uplevel: 1
|
||||||
from = nil
|
from = nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue