sync: Honor --no-clone-bundle with -j1
Change-Id: I7c12902e386121a374d525be673092360c67c53d
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 63227af..bfe146b 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -230,8 +230,10 @@
if self.jobs == 1:
for project in projects:
pm.update()
- if project.Sync_NetworkHalf(quiet=opt.quiet,
- current_branch_only=opt.current_branch_only):
+ if project.Sync_NetworkHalf(
+ quiet=opt.quiet,
+ current_branch_only=opt.current_branch_only,
+ clone_bundle=not opt.no_clone_bundle):
fetched.add(project.gitdir)
else:
print >>sys.stderr, 'error: Cannot fetch %s' % project.name