immediate checkout after fetch
diff --git a/subcmds/sync.py b/subcmds/sync.py
index a0a6896..96908f4 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -274,7 +274,12 @@
clone_bundle=not opt.no_clone_bundle,
no_tags=opt.no_tags, archive=self.manifest.IsArchive)
self._fetch_times.Set(project, time.time() - start)
-
+ if success and (not opt.network_only):
+ syncbuf = SyncBuffer(self.manifest.manifestProject.config,
+ detach_head = opt.detach_head)
+ if project.worktree:
+ project.Sync_LocalHalf(syncbuf)
+ syncbuf.Finish()
# Lock around all the rest of the code, since printing, updating a set
# and Progress.update() are not thread safe.
lock.acquire()