mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vcs.rb: continue just with warning if failed to fetch notes
This commit is contained in:
parent
ccd7b7ab9a
commit
6ef761a515
Notes:
git
2021-01-23 10:08:19 +09:00
1 changed files with 5 additions and 4 deletions
|
@ -541,12 +541,13 @@ class VCS
|
|||
warn "no starting commit found", uplevel: 1
|
||||
from = nil
|
||||
end
|
||||
unless svn or system(*%W"#{COMMAND} fetch origin refs/notes/commits:refs/notes/commits",
|
||||
if svn or system(*%W"#{COMMAND} fetch origin refs/notes/commits:refs/notes/commits",
|
||||
chdir: @srcdir, exception: false)
|
||||
abort "Could not fetch notes/commits tree"
|
||||
end
|
||||
system(*%W"#{COMMAND} fetch origin refs/notes/log-fix:refs/notes/log-fix",
|
||||
system(*%W"#{COMMAND} fetch origin refs/notes/log-fix:refs/notes/log-fix",
|
||||
chdir: @srcdir, exception: false)
|
||||
else
|
||||
warn "Could not fetch notes/commits tree", uplevel: 1
|
||||
end
|
||||
to ||= url.to_str
|
||||
if from
|
||||
arg = ["#{from}^..#{to}"]
|
||||
|
|
Loading…
Add table
Reference in a new issue