1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Push commits notes too [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-08-13 12:24:15 +09:00
parent f78916e3c1
commit 0d1af9f942
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -594,12 +594,17 @@ class VCS
args = [COMMAND, "push"]
args << "-n" if dryrun
remote, branch = upstream
args << remote << "HEAD:#{branch}"
args << remote
branches = %W[refs/notes/commits:refs/notes/commits HEAD:#{branch}]
if dryrun?
STDERR.puts(args.inspect)
branches.each do |b|
STDERR.puts((args + [b]).inspect)
end
return true
end
system(*args) or return false
branches.each do |b|
system(*(args + [b])) or return false
end
true
end
end