diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-18 18:20:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-18 18:20:20 -0400 |
commit | f329c56f5e356bfaaf04d0587058824713d9b1c9 (patch) | |
tree | a2e099715eddf9120b388ce5de36c5db814181b5 /Annex | |
parent | 891868cf0185b8a1b81a8a39cd88ce2e00cdc338 (diff) |
Ensure that core.sharedrepository is honored when creating the .git/annex directory.
Diffstat (limited to 'Annex')
-rw-r--r-- | Annex/Branch.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs index 22ab002fe..9838af25f 100644 --- a/Annex/Branch.hs +++ b/Annex/Branch.hs @@ -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} } |