vcs.rb: continue just with warning if failed to fetch notes

This commit is contained in:
Nobuyoshi Nakada 2021-01-23 09:24:52 +09:00
Родитель ccd7b7ab9a
Коммит 6ef761a515
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -541,12 +541,13 @@ class VCS
warn "no starting commit found", uplevel: 1
from = nil
end
unless svn or system(*%W"#{COMMAND} fetch origin refs/notes/commits:refs/notes/commits",
if svn or system(*%W"#{COMMAND} fetch origin refs/notes/commits:refs/notes/commits",
chdir: @srcdir, exception: false)
abort "Could not fetch notes/commits tree"
end
system(*%W"#{COMMAND} fetch origin refs/notes/log-fix:refs/notes/log-fix",
chdir: @srcdir, exception: false)
else
warn "Could not fetch notes/commits tree", uplevel: 1
end
to ||= url.to_str
if from
arg = ["#{from}^..#{to}"]