mercurial/localrepo.py
changeset 40793 64cdfcc73706
parent 40785 875d2af8cb4e
child 40794 d5622dfe4ba3
--- 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')