summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/init.py3
-rw-r--r--subcmds/sync.py8
2 files changed, 8 insertions, 3 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'):
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 4d0a5ec6..3451ab6b 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -286,7 +286,7 @@ later is required to fix a server side protocol bug.
286 True if a superproject is requested, otherwise the value of the 286 True if a superproject is requested, otherwise the value of the
287 current_branch option (True, False or None). 287 current_branch option (True, False or None).
288 """ 288 """
289 return git_superproject.UseSuperproject(opt, self.manifest) or opt.current_branch_only 289 return git_superproject.UseSuperproject(opt.use_superproject, self.manifest) or opt.current_branch_only
290 290
291 def _UpdateProjectsRevisionId(self, opt, args, load_local_manifests, superproject_logging_data): 291 def _UpdateProjectsRevisionId(self, opt, args, load_local_manifests, superproject_logging_data):
292 """Update revisionId of every project with the SHA from superproject. 292 """Update revisionId of every project with the SHA from superproject.
@@ -306,7 +306,8 @@ later is required to fix a server side protocol bug.
306 """ 306 """
307 superproject = self.manifest.superproject 307 superproject = self.manifest.superproject
308 superproject.SetQuiet(opt.quiet) 308 superproject.SetQuiet(opt.quiet)
309 print_messages = git_superproject.PrintMessages(opt, self.manifest) 309 print_messages = git_superproject.PrintMessages(opt.use_superproject,
310 self.manifest)
310 superproject.SetPrintMessages(print_messages) 311 superproject.SetPrintMessages(print_messages)
311 if opt.local_only: 312 if opt.local_only:
312 manifest_path = superproject.manifest_path 313 manifest_path = superproject.manifest_path
@@ -993,7 +994,8 @@ later is required to fix a server side protocol bug.
993 self._UpdateManifestProject(opt, mp, manifest_name) 994 self._UpdateManifestProject(opt, mp, manifest_name)
994 995
995 load_local_manifests = not self.manifest.HasLocalManifests 996 load_local_manifests = not self.manifest.HasLocalManifests
996 use_superproject = git_superproject.UseSuperproject(opt, self.manifest) 997 use_superproject = git_superproject.UseSuperproject(opt.use_superproject,
998 self.manifest)
997 if use_superproject and (self.manifest.IsMirror or self.manifest.IsArchive): 999 if use_superproject and (self.manifest.IsMirror or self.manifest.IsArchive):
998 # Don't use superproject, because we have no working tree. 1000 # Don't use superproject, because we have no working tree.
999 use_superproject = False 1001 use_superproject = False