mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Show the commit command if dryrun
This commit is contained in:
parent
f1486fea46
commit
4fabb74471
1 changed files with 1 additions and 0 deletions
|
@ -510,6 +510,7 @@ class VCS
|
|||
dryrun = opts.fetch(:dryrun) {$DEBUG} if opts
|
||||
args = [COMMAND, "push"]
|
||||
args << "-n" if dryrun
|
||||
STDERR.puts(args.inspect) if dryrun
|
||||
system(*args) or return false
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue