summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 7ab0b1fb..244a560b 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -136,7 +136,6 @@ later is required to fix a server side protocol bug.
136 help='be more quiet') 136 help='be more quiet')
137 p.add_option('-j','--jobs', 137 p.add_option('-j','--jobs',
138 dest='jobs', action='store', type='int', 138 dest='jobs', action='store', type='int',
139 default=self.jobs,
140 help="projects to fetch simultaneously (default %d)" % self.jobs) 139 help="projects to fetch simultaneously (default %d)" % self.jobs)
141 if show_smart: 140 if show_smart:
142 p.add_option('-s', '--smart-sync', 141 p.add_option('-s', '--smart-sync',
@@ -401,6 +400,8 @@ uncommitted changes are present' % project.relpath
401 if not syncbuf.Finish(): 400 if not syncbuf.Finish():
402 sys.exit(1) 401 sys.exit(1)
403 self.manifest._Unload() 402 self.manifest._Unload()
403 if opt.jobs is None:
404 self.jobs = self.manifest.default.sync_j
404 all = self.GetProjects(args, missing_ok=True) 405 all = self.GetProjects(args, missing_ok=True)
405 406
406 if not opt.local_only: 407 if not opt.local_only: