sync: Honor --no-clone-bundle with -j1

Change-Id: I7c12902e386121a374d525be673092360c67c53d
This commit is contained in:
Shawn O. Pearce 2012-08-02 12:13:01 -07:00
parent f35b2d9c31
commit 5d0efdb14a

View File

@ -230,8 +230,10 @@ later is required to fix a server side protocol bug.
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