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:
parent
f78916e3c1
commit
0d1af9f942
1 changed files with 8 additions and 3 deletions
|
@ -594,12 +594,17 @@ class VCS
|
||||||
args = [COMMAND, "push"]
|
args = [COMMAND, "push"]
|
||||||
args << "-n" if dryrun
|
args << "-n" if dryrun
|
||||||
remote, branch = upstream
|
remote, branch = upstream
|
||||||
args << remote << "HEAD:#{branch}"
|
args << remote
|
||||||
|
branches = %W[refs/notes/commits:refs/notes/commits HEAD:#{branch}]
|
||||||
if dryrun?
|
if dryrun?
|
||||||
STDERR.puts(args.inspect)
|
branches.each do |b|
|
||||||
|
STDERR.puts((args + [b]).inspect)
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
system(*args) or return false
|
branches.each do |b|
|
||||||
|
system(*(args + [b])) or return false
|
||||||
|
end
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue