diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-23 09:24:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-23 10:07:49 +0900 |
commit | 6ef761a5153a03b059fbce6a58bea8d701328b46 (patch) | |
tree | c320c37f29368331cd33f0aa3d73a83270eaabdf | |
parent | ccd7b7ab9ac7b2adb427c52f32766d4e0a474de5 (diff) |
vcs.rb: continue just with warning if failed to fetch notes
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4109
-rw-r--r-- | tool/lib/vcs.rb | 9 |
1 files 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}"] |