summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2022-04-14 14:41:13 +0000
committerLaMont Jones <lamontjones@google.com>2022-04-14 22:23:16 +0000
commit5fa912b0d148cf92f72640ac7dcff98c5db11853 (patch)
tree808eea4e1fcf848cd1faa2cb044a1aa86d7ddbf9 /subcmds/init.py
parent4ada043dc0045a0e58fcad37e1f50c6b0c9acc61 (diff)
downloadgit-repo-5fa912b0d148cf92f72640ac7dcff98c5db11853.tar.gz
Stop passing optparse.Values to git_superproject
Make git_superproject independent of the command line by passing the specific value instead of requiring the caller to have an optparse.Values object to pass in. Flag --use-superproject and --archive as incompatible in subcmds/init.py Change-Id: Ied7c874b312e151038df903c8af4328f070f387c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/335135 Tested-by: LaMont Jones <lamontjones@google.com> Reviewed-by: Raman Tenneti <rtenneti@google.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 99f30dce..0388f5d1 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -260,6 +260,9 @@ to update the working directory files.
260 if opt.use_superproject is not None: 260 if opt.use_superproject is not None:
261 self.OptionParser.error('--mirror and --use-superproject cannot be ' 261 self.OptionParser.error('--mirror and --use-superproject cannot be '
262 'used together.') 262 'used together.')
263 if opt.archive and opt.use_superproject is not None:
264 self.OptionParser.error('--archive and --use-superproject cannot be used '
265 'together.')
263 266
264 if opt.standalone_manifest and (opt.manifest_branch or 267 if opt.standalone_manifest and (opt.manifest_branch or
265 opt.manifest_name != 'default.xml'): 268 opt.manifest_name != 'default.xml'):