diff -r ba8089433090 -r d08e7449ff27 mercurial/hg.py --- 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