summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-09 08:54:38 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-09 08:54:38 +0900
commit10723dd6cefb84e6a7d69b3bc3c1a74c345e4306 (patch)
tree7f7ee73e4a4f042d578953d9547697de980d1105 /tool/vcs.rb
parentdc405eb737c178016167c8e64bdf32d27c5455f0 (diff)
dryrun option is for `push`, not `git`
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 8fb9a4e..6fd2705 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -508,9 +508,8 @@ class VCS
def commit(opts = {})
dryrun = opts.fetch(:dryrun) {$DEBUG} if opts
- args = [COMMAND]
+ args = [COMMAND, "push"]
args << "-n" if dryrun
- args << "push"
system(*args) or return false
true
end