From c222f4d31fc5f0566fa969d8fbb948f8841daf94 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 30 Apr 2019 16:18:45 +0900 Subject: `from` is not nil but `""` on shallow clone [ci skip] --- tool/vcs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/vcs.rb') diff --git a/tool/vcs.rb b/tool/vcs.rb index bd8e7e1083..f4a10c81f1 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -490,7 +490,7 @@ class VCS 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 v1.2.3