mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Try to fetch commits notes to the source tree automatically
[Bug #16167]
This commit is contained in:
parent
44d594189a
commit
6cad064424
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue