mercurial/hg.py
branchstable
changeset 26026 d08e7449ff27
parent 25761 0d37b9b21467
child 26030 5243890224ff
--- a/mercurial/hg.py	Wed Aug 12 12:26:39 2015 -0400
+++ b/mercurial/hg.py	Thu Aug 13 15:07:07 2015 +0900
@@ -404,7 +404,7 @@
     shareopts = shareopts or {}
     sharepool = shareopts.get('pool')
     sharenamemode = shareopts.get('mode')
-    if sharepool:
+    if sharepool and islocal(dest):
         sharepath = None
         if sharenamemode == 'identity':
             # Resolve the name from the initial changeset in the remote