diff options
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 169a8b77..4f817ddf 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -627,9 +627,12 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
627 | # If using superproject, add the root repo as a push option. | 627 | # If using superproject, add the root repo as a push option. |
628 | manifest = branch.project.manifest | 628 | manifest = branch.project.manifest |
629 | push_options = list(opt.push_options) | 629 | push_options = list(opt.push_options) |
630 | sp = manifest.superproject | 630 | if manifest.manifestProject.use_superproject: |
631 | if sp and sp.repo_id and manifest.manifestProject.use_superproject: | 631 | sp = manifest.superproject |
632 | push_options.append(f"custom-keyed-value=rootRepo:{sp.repo_id}") | 632 | if sp: |
633 | r_id = sp.repo_id | ||
634 | if r_id: | ||
635 | push_options.append(f"custom-keyed-value=rootRepo:{r_id}") | ||
633 | 636 | ||
634 | branch.UploadForReview( | 637 | branch.UploadForReview( |
635 | people, | 638 | people, |