changeset 23666 | 965788d9ae09 |
parent 23580 | e20f36ad092e |
child 23678 | 194d2f185008 |
--- a/mercurial/subrepo.py Tue Dec 23 16:16:26 2014 -0800 +++ b/mercurial/subrepo.py Sun Dec 21 00:19:10 2014 +0100 @@ -302,7 +302,7 @@ return repo.ui.config('paths', 'default-push') if repo.ui.config('paths', 'default'): return repo.ui.config('paths', 'default') - if repo.sharedpath != repo.path: + if repo.shared(): # chop off the .hg component to get the default path form return os.path.dirname(repo.sharedpath) if abort: