mercurial/hg.py
changeset 28202 a4692267bc2d
parent 28201 60adda1a0188
child 28324 549ff28a345f
--- a/mercurial/hg.py	Sat Feb 20 17:41:59 2016 -0800
+++ b/mercurial/hg.py	Sat Feb 20 17:44:29 2016 -0800
@@ -356,7 +356,7 @@
               rev=rev, update=False, stream=stream)
 
     sharerepo = repository(ui, path=sharepath)
-    share(ui, sharerepo, dest=dest, update=update, bookmarks=False)
+    share(ui, sharerepo, dest=dest, update=False, bookmarks=False)
 
     # We need to perform a pull against the dest repo to fetch bookmarks
     # and other non-store data that isn't shared by default. In the case of
@@ -366,6 +366,8 @@
     destrepo = repository(ui, path=dest)
     exchange.pull(destrepo, srcpeer, heads=revs)
 
+    _postshareupdate(destrepo, update)
+
     return srcpeer, peer(ui, peeropts, dest)
 
 def clone(ui, peeropts, source, dest=None, pull=False, rev=None,