summaryrefslogtreecommitdiff
path: root/Annex/Init.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-06-02 15:36:52 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-06-02 15:36:52 -0400
commitf5fa8ea57a8bca62ebf31b796f218e697b67910a (patch)
treed7338f71b679729ea3d76b5fd9be08dbeaa45b39 /Annex/Init.hs
parentfc4fa86f301980f8e4ccd77a5ddf7d81e7560d17 (diff)
avoid switching to direct mode in clone of adjusted branch repo
Diffstat (limited to 'Annex/Init.hs')
-rw-r--r--Annex/Init.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Annex/Init.hs b/Annex/Init.hs
index f0023bfb3..8c20e5e12 100644
--- a/Annex/Init.hs
+++ b/Annex/Init.hs
@@ -93,6 +93,8 @@ initialize' mversion = do
whenM versionSupportsUnlockedPointers $ do
configureSmudgeFilter
Database.Keys.scanAssociatedFiles
+ whenM checkAdjustedClone $
+ void $ upgrade True
ifM (crippledFileSystem <&&> (not <$> isBare))
( ifM versionSupportsUnlockedPointers
( adjustToCrippledFileSystem
@@ -105,8 +107,6 @@ initialize' mversion = do
, unlessM isBare
switchHEADBack
)
- whenM checkAdjustedClone $
- void $ upgrade True
createInodeSentinalFile False
uninitialize :: Annex ()