diff options
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/init.py | 6 | ||||
-rw-r--r-- | subcmds/sync.py | 7 |
2 files changed, 9 insertions, 4 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 3566b8b6..a23e529d 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -227,6 +227,9 @@ to update the working directory files. | |||
227 | else: | 227 | else: |
228 | opt.clone_filter = None | 228 | opt.clone_filter = None |
229 | 229 | ||
230 | if opt.partial_clone_exclude is not None: | ||
231 | m.config.SetString('repo.partialcloneexclude', opt.partial_clone_exclude) | ||
232 | |||
230 | if opt.clone_bundle is None: | 233 | if opt.clone_bundle is None: |
231 | opt.clone_bundle = False if opt.partial_clone else True | 234 | opt.clone_bundle = False if opt.partial_clone else True |
232 | else: | 235 | else: |
@@ -242,7 +245,8 @@ to update the working directory files. | |||
242 | clone_bundle=opt.clone_bundle, | 245 | clone_bundle=opt.clone_bundle, |
243 | current_branch_only=opt.current_branch_only, | 246 | current_branch_only=opt.current_branch_only, |
244 | tags=opt.tags, submodules=opt.submodules, | 247 | tags=opt.tags, submodules=opt.submodules, |
245 | clone_filter=opt.clone_filter): | 248 | clone_filter=opt.clone_filter, |
249 | partial_clone_exclude=self.manifest.PartialCloneExclude): | ||
246 | r = m.GetRemote(m.remote.name) | 250 | r = m.GetRemote(m.remote.name) |
247 | print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) | 251 | print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) |
248 | 252 | ||
diff --git a/subcmds/sync.py b/subcmds/sync.py index 4bcd45d5..b8abb1a7 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -348,7 +348,8 @@ later is required to fix a server side protocol bug. | |||
348 | optimized_fetch=opt.optimized_fetch, | 348 | optimized_fetch=opt.optimized_fetch, |
349 | retry_fetches=opt.retry_fetches, | 349 | retry_fetches=opt.retry_fetches, |
350 | prune=opt.prune, | 350 | prune=opt.prune, |
351 | clone_filter=self.manifest.CloneFilter) | 351 | clone_filter=self.manifest.CloneFilter, |
352 | partial_clone_exclude=self.manifest.PartialCloneExclude) | ||
352 | 353 | ||
353 | output = buf.getvalue() | 354 | output = buf.getvalue() |
354 | if opt.verbose and output: | 355 | if opt.verbose and output: |
@@ -517,7 +518,6 @@ later is required to fix a server side protocol bug. | |||
517 | if (not project.use_git_worktrees and | 518 | if (not project.use_git_worktrees and |
518 | len(project.manifest.GetProjectsWithName(project.name)) > 1): | 519 | len(project.manifest.GetProjectsWithName(project.name)) > 1): |
519 | if not opt.quiet: | 520 | if not opt.quiet: |
520 | #pm.update(inc=0, msg='Shared project found') | ||
521 | print('\r%s: Shared project %s found, disabling pruning.' % | 521 | print('\r%s: Shared project %s found, disabling pruning.' % |
522 | (project.relpath, project.name)) | 522 | (project.relpath, project.name)) |
523 | if git_require((2, 7, 0)): | 523 | if git_require((2, 7, 0)): |
@@ -726,7 +726,8 @@ later is required to fix a server side protocol bug. | |||
726 | optimized_fetch=opt.optimized_fetch, | 726 | optimized_fetch=opt.optimized_fetch, |
727 | retry_fetches=opt.retry_fetches, | 727 | retry_fetches=opt.retry_fetches, |
728 | submodules=self.manifest.HasSubmodules, | 728 | submodules=self.manifest.HasSubmodules, |
729 | clone_filter=self.manifest.CloneFilter) | 729 | clone_filter=self.manifest.CloneFilter, |
730 | partial_clone_exclude=self.manifest.PartialCloneExclude) | ||
730 | finish = time.time() | 731 | finish = time.time() |
731 | self.event_log.AddSync(mp, event_log.TASK_SYNC_NETWORK, | 732 | self.event_log.AddSync(mp, event_log.TASK_SYNC_NETWORK, |
732 | start, finish, success) | 733 | start, finish, success) |