From 2356a2557a65073bc61fc909a5806615129114d3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 7 Mar 2014 12:43:56 -0400 Subject: Fix direct mode getKeysPresent false positive & also sped up direct mode unused and unannex unused: In direct mode, files that are deleted from the work tree are no longer incorrectly detected as unused. Direct mode `git annex info` slows down a bit due to more stringent checking, but not by a lot. --- Annex/Init.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Annex/Init.hs') diff --git a/Annex/Init.hs b/Annex/Init.hs index 57379535d..e095aef61 100644 --- a/Annex/Init.hs +++ b/Annex/Init.hs @@ -198,7 +198,7 @@ enableDirectMode = unlessM isDirect $ do -} fixBadBare :: Annex () fixBadBare = whenM checkBadBare $ do - ks <- getKeysPresent + ks <- getKeysPresent InAnnex liftIO $ debugM "Init" $ unwords [ "Detected bad bare repository with" , show (length ks) -- cgit v1.2.3