summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-13 12:24:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-13 12:24:40 +0900
commit0d1af9f942e391d8bf50a7ae2e6bb931542d541a (patch)
tree14fc7ce21ed1dbfef5a3c6c868a11fdf9ad98919 /tool
parentf78916e3c1fc10a7f9555129961194c7d6ba4f2d (diff)
Push commits notes too [ci skip]
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/vcs.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index dc407dd9a2..0a3d54cc6f 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -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