summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-15 16:23:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-15 16:23:33 +0900
commit6cad0644248d5acbaf3a2e8de4ff6d88b3dd2cb4 (patch)
tree82c59900a4dd04a0837832529568f200c93021d1 /tool
parent44d594189aa2b1365b9b765cb272906b9561cc1d (diff)
Try to fetch commits notes to the source tree automatically
[Bug #16167]
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/vcs.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index f8b78bc2f6..924dfe327a 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -607,10 +607,9 @@ class VCS
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