from is not nil but "" on shallow clone [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2019-04-30 16:18:45 +09:00
parent 151b7d72bd
commit c222f4d31f
No known key found for this signature in database
GPG Key ID: 262ED8DBB4222F7A

View File

@ -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('^..')