diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-03-29 13:52:13 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-03-29 13:54:42 -0400 |
commit | d3eac61d33603ef2896be9e4b20217e63505a4d6 (patch) | |
tree | b97d6480e05ee7d4dc22ea595d1309d227ac5729 /Annex/Init.hs | |
parent | 2c2a41bce93797f348604fd11fdbd77fe12eaa9c (diff) |
init: Automatically enter the adjusted unlocked branch when in a v6 repo on a filesystem not supporting symlinks.
Diffstat (limited to 'Annex/Init.hs')
-rw-r--r-- | Annex/Init.hs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Annex/Init.hs b/Annex/Init.hs index 7501d9b8f..99f8ece2c 100644 --- a/Annex/Init.hs +++ b/Annex/Init.hs @@ -33,6 +33,7 @@ import Annex.UUID import Annex.Link import Config import Annex.Direct +import Annex.AdjustedBranch import Annex.Environment import Annex.Hook import Annex.InodeSentinal @@ -92,10 +93,13 @@ initialize' mversion = do whenM versionSupportsUnlockedPointers $ do configureSmudgeFilter Database.Keys.scanAssociatedFiles - ifM (crippledFileSystem <&&> (not <$> isBare) <&&> (not <$> versionSupportsUnlockedPointers)) - ( do - enableDirectMode - setDirect True + ifM (crippledFileSystem <&&> (not <$> isBare)) + ( ifM versionSupportsUnlockedPointers + ( adjustToCrippledFileSystem + , do + enableDirectMode + setDirect True + ) -- Handle case where this repo was cloned from a -- direct mode repo , unlessM isBare |