diff options
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 1d778e1e..ee7e4a80 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -986,6 +986,10 @@ later is required to fix a server side protocol bug. | |||
986 | 986 | ||
987 | load_local_manifests = not self.manifest.HasLocalManifests | 987 | load_local_manifests = not self.manifest.HasLocalManifests |
988 | use_superproject = git_superproject.UseSuperproject(opt, self.manifest) | 988 | use_superproject = git_superproject.UseSuperproject(opt, self.manifest) |
989 | if self.manifest.IsMirror or self.manifest.IsArchive: | ||
990 | # Don't use superproject, because we have no working tree. | ||
991 | use_superproject = False | ||
992 | print('Defaulting to no-use-superproject because there is no working tree.') | ||
989 | superproject_logging_data = { | 993 | superproject_logging_data = { |
990 | 'superproject': use_superproject, | 994 | 'superproject': use_superproject, |
991 | 'haslocalmanifests': bool(self.manifest.HasLocalManifests), | 995 | 'haslocalmanifests': bool(self.manifest.HasLocalManifests), |