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
|
warn "no starting commit found", uplevel: 1
|
||||||
from = nil
|
from = nil
|
||||||
end
|
end
|
||||||
_rev = cmd_read({'LANG' => 'C', 'LC_ALL' => 'C'},
|
unless system(*%W"#{COMMAND} fetch origin refs/notes/commits:refs/notes/commits",
|
||||||
%W"#{COMMAND} show-ref notes/commits")
|
chdir: @srcdir, exception: false)
|
||||||
unless $?.success?
|
abort "Could not fetch notes/commits tree"
|
||||||
raise "need notes/commits tree; run `git fetch origin refs/notes/commits:refs/notes/commits` in the repository"
|
|
||||||
end
|
end
|
||||||
to ||= 'HEAD'
|
to ||= 'HEAD'
|
||||||
if from
|
if from
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue