Skip to content

Commit

Permalink
Try to fetch commits notes to the source tree automatically
Browse files Browse the repository at this point in the history
[Bug #16167]
  • Loading branch information
nobu committed Sep 15, 2019
1 parent 44d5941 commit 6cad064
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tool/lib/vcs.rb
Expand Up @@ -607,10 +607,9 @@ def export_changelog(url, from, to, path)
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
Expand Down

0 comments on commit 6cad064

Please sign in to comment.