`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
Родитель 151b7d72bd
Коммит c222f4d31f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 262ED8DBB4222F7A
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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