From 4f6c8222072ace33e3acedddd31637089ae474b6 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 5 Nov 2013 16:42:59 -0400 Subject: v5 for direct mode, with automatic upgrade This includes storing the current state of the HEAD ref, which git annex sync is going to need, but does not make sync use it. --- Config.hs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Config.hs') diff --git a/Config.hs b/Config.hs index 475cb83ec..0c6b64f50 100644 --- a/Config.hs +++ b/Config.hs @@ -71,14 +71,6 @@ getNumCopies Nothing = annexNumCopies <$> Annex.getGitConfig isDirect :: Annex Bool isDirect = annexDirect <$> Annex.getGitConfig -setDirect :: Bool -> Annex () -setDirect b = do - setConfig (annexConfig "direct") val - setConfig (ConfigKey Git.Config.coreBare) val - Annex.changeGitConfig $ \c -> c { annexDirect = b } - where - val = Git.Config.boolConfig b - crippledFileSystem :: Annex Bool crippledFileSystem = annexCrippledFileSystem <$> Annex.getGitConfig -- cgit v1.2.3