1
0
Fork 0
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:
Nobuyoshi Nakada 2019-05-09 09:59:27 +09:00
parent f1486fea46
commit 4fabb74471
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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