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

ruby-changes:57750

From: Nobuyoshi <ko1@a...>
Date: Sat, 14 Sep 2019 23:51:10 +0900 (JST)
Subject: [ruby-changes:57750] e9c7fc7ca9 (master): Continue to export even if no notes/commits

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

From e9c7fc7ca9bc15a9f84bdc356f7b6fac12988ccb Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 14 Sep 2019 23:47:33 +0900
Subject: Continue to export even if no notes/commits

Just exporting may not imply exporting ChangeLog which needs
notes/commits.  [Bug #16167]

diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 85a4827..780ae34 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -584,7 +584,9 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L584
 
     def export(revision, url, dir, keep_temp = false)
       system(COMMAND, "clone", "-c", "advice.detachedHead=false", "-s", (@srcdir || '.').to_s, "-b", url, dir) or return
-      system(COMMAND, "fetch", "origin", "+refs/notes/commits:refs/notes/commits", chdir: dir) or return
+      unless system(COMMAND, "fetch", "origin", "+refs/notes/commits:refs/notes/commits", chdir: dir, exception: false)
+        warn "No notes/commits tree"
+      end
       (Integer === revision ? GITSVN : GIT).new(File.expand_path(dir))
     end
 
-- 
cgit v0.10.2


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

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