From 0d1af9f942e391d8bf50a7ae2e6bb931542d541a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 13 Aug 2019 12:24:15 +0900 Subject: Push commits notes too [ci skip] --- tool/lib/vcs.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tool/lib') 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 -- cgit v1.2.3