ruby-changes:56999
From: Nobuyoshi <ko1@a...>
Date: Tue, 13 Aug 2019 12:25:53 +0900 (JST)
Subject: [ruby-changes:56999] Nobuyoshi Nakada: 0d1af9f942 (master): Push commits notes too [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=0d1af9f942 From 0d1af9f942e391d8bf50a7ae2e6bb931542d541a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 13 Aug 2019 12:24:15 +0900 Subject: Push commits notes too [ci skip] diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index dc407dd..0a3d54c 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -594,12 +594,17 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L594 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/