ruby-changes:57757
From: Nobuyoshi <ko1@a...>
Date: Sun, 15 Sep 2019 16:24:31 +0900 (JST)
Subject: [ruby-changes:57757] 6cad064424 (master): Try to fetch commits notes to the source tree automatically
https://git.ruby-lang.org/ruby.git/commit/?id=6cad064424 From 6cad0644248d5acbaf3a2e8de4ff6d88b3dd2cb4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 15 Sep 2019 16:23:33 +0900 Subject: Try to fetch commits notes to the source tree automatically [Bug #16167] diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index f8b78bc..924dfe3 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -607,10 +607,9 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L607 warn "no starting commit found", uplevel: 1 from = nil end - _rev = cmd_read({'LANG' => 'C', 'LC_ALL' => 'C'}, - %W"#{COMMAND} show-ref notes/commits") - unless $?.success? - raise "need notes/commits tree; run `git fetch origin refs/notes/commits:refs/notes/commits` in the repository" + unless system(*%W"#{COMMAND} fetch origin refs/notes/commits:refs/notes/commits", + chdir: @srcdir, exception: false) + abort "Could not fetch notes/commits tree" end to ||= 'HEAD' if from -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/