ruby-changes:55626
From: Kazuhiro <ko1@a...>
Date: Tue, 30 Apr 2019 16:21:16 +0900 (JST)
Subject: [ruby-changes:55626] Kazuhiro NISHIYAMA:c222f4d31f (trunk): `from` is not nil but `""` on shallow clone [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=c222f4d31f From c222f4d31fc5f0566fa969d8fbb948f8841daf94 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Tue, 30 Apr 2019 16:18:45 +0900 Subject: `from` is not nil but `""` on shallow clone [ci skip] diff --git a/tool/vcs.rb b/tool/vcs.rb index bd8e7e1..f4a10c8 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -490,7 +490,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L490 end rev unless rev.empty? end - unless (from ||= branch_beginning(url)) + unless /./.match?(from ||= branch_beginning(url)) raise "cannot find the beginning revision of the branch" end range = [from, (to || 'HEAD')].join('^..') -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/