diff -r 84c00f03e06c -r 5243890224ff mercurial/hg.py --- a/mercurial/hg.py Wed Aug 12 19:44:21 2015 -0700 +++ b/mercurial/hg.py Thu Aug 13 19:37:47 2015 -0500 @@ -428,7 +428,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