Ensure that core.sharedrepository is honored when creating the .git/annex directory.

This commit is contained in:
Joey Hess 2013-11-18 18:20:20 -04:00
parent 310c549b5a
commit b876df6fdb
3 changed files with 8 additions and 6 deletions

View file

@ -351,7 +351,7 @@ withIndex' bootstrapping a = do
Annex.changeState $ \s -> s { Annex.repo = g' }
checkIndexOnce $ unlessM (liftIO $ doesFileExist f) $ do
unless bootstrapping create
liftIO $ createDirectoryIfMissing True $ takeDirectory f
createAnnexDirectory $ takeDirectory f
unless bootstrapping $ inRepo genIndex
a
Annex.changeState $ \s -> s { Annex.repo = (Annex.repo s) { gitEnv = gitEnv g} }