dryrun option is for push, not git

This commit is contained in:
Nobuyoshi Nakada 2019-05-09 08:54:38 +09:00
parent dc405eb737
commit 10723dd6ce
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60

View File

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