зеркало из https://github.com/github/ruby.git
`from` is not nil but `""` on shallow clone [ci skip]
This commit is contained in:
Родитель
151b7d72bd
Коммит
c222f4d31f
|
@ -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('^..')
|
||||
|
|
Загрузка…
Ссылка в новой задаче