From 6ef761a5153a03b059fbce6a58bea8d701328b46 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 23 Jan 2021 09:24:52 +0900 Subject: vcs.rb: continue just with warning if failed to fetch notes --- tool/lib/vcs.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 50ec627df7..625900797e 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -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", + 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}"] -- cgit v1.2.3