diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-30 16:18:45 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-30 16:20:46 +0900 |
commit | c222f4d31fc5f0566fa969d8fbb948f8841daf94 (patch) | |
tree | 7980d004f288d2538de6814db67220ab8400a51c /tool | |
parent | 151b7d72bd26f9676c92b69f6b4710af3cb7ea65 (diff) |
`from` is not nil but `""` on shallow clone [ci skip]
Diffstat (limited to 'tool')
-rw-r--r-- | tool/vcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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('^..') |