diff -r 47e3f554df35 -r 64cdfcc73706 mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Nov 15 17:08:23 2018 +0100 +++ b/mercurial/localrepo.py Thu Nov 15 02:38:55 2018 +0100 @@ -3010,6 +3010,8 @@ wdirvfs.makedirs() hgvfs.makedir(notindexed=True) + if 'sharedrepo' not in createopts: + hgvfs.mkdir(b'cache') if b'store' in requirements and 'sharedrepo' not in createopts: hgvfs.mkdir(b'store')