[前][次][番号順一覧][スレッド一覧]

ruby-changes:65004

From: Nobuyoshi <ko1@a...>
Date: Sat, 23 Jan 2021 10:08:13 +0900 (JST)
Subject: [ruby-changes:65004] 6ef761a515 (master): vcs.rb: continue just with warning if failed to fetch notes

https://git.ruby-lang.org/ruby.git/commit/?id=6ef761a515

From 6ef761a5153a03b059fbce6a58bea8d701328b46 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
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 50ec627..6259007 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -541,12 +541,13 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L541
         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.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]