diff options
| author | Masaya Suzuki <masayasuzuki@google.com> | 2017-11-13 10:48:34 -0800 |
|---|---|---|
| committer | Masaya Suzuki <masayasuzuki@google.com> | 2017-11-13 15:48:49 -0800 |
| commit | 305a2d029f471d94759da7b304f886723cab6ba5 (patch) | |
| tree | 2cf7a2e9ca63dbb85c80de280e5344466e7fce9e /subcmds | |
| parent | 84e7e16d35f7300bc5f4b6cca85deaf1b5a45263 (diff) | |
| download | git-repo-305a2d029f471d94759da7b304f886723cab6ba5.tar.gz | |
Support --push-option in upload subcommand
Change-Id: I44836f8c66ded5a96cbf5431912e027e681f6529
Diffstat (limited to 'subcmds')
| -rw-r--r-- | subcmds/upload.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 60feff7a..77eaf81a 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -160,6 +160,10 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 160 | p.add_option('-w', '--wip', | 160 | p.add_option('-w', '--wip', |
| 161 | action='store_true', dest='wip', default=False, | 161 | action='store_true', dest='wip', default=False, |
| 162 | help='If specified, upload as a work-in-progress change.') | 162 | help='If specified, upload as a work-in-progress change.') |
| 163 | p.add_option('-o', '--push-option', | ||
| 164 | type='string', action='append', dest='push_options', | ||
| 165 | default=[], | ||
| 166 | help='Additional push options to transmit') | ||
| 163 | p.add_option('-D', '--destination', '--dest', | 167 | p.add_option('-D', '--destination', '--dest', |
| 164 | type='string', action='store', dest='dest_branch', | 168 | type='string', action='store', dest='dest_branch', |
| 165 | metavar='BRANCH', | 169 | metavar='BRANCH', |
| @@ -393,7 +397,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ | |||
| 393 | private=opt.private, | 397 | private=opt.private, |
| 394 | wip=opt.wip, | 398 | wip=opt.wip, |
| 395 | dest_branch=destination, | 399 | dest_branch=destination, |
| 396 | validate_certs=opt.validate_certs) | 400 | validate_certs=opt.validate_certs, |
| 401 | push_options=opt.push_options) | ||
| 397 | 402 | ||
| 398 | branch.uploaded = True | 403 | branch.uploaded = True |
| 399 | except UploadError as e: | 404 | except UploadError as e: |
