summaryrefslogtreecommitdiff
path: root/Annex/Init.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-03-07 12:43:56 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-03-07 12:43:56 -0400
commit2356a2557a65073bc61fc909a5806615129114d3 (patch)
treecb2460b15957628834403bb4f1c30c903dbf09e8 /Annex/Init.hs
parent657f2518895dd055f083140ff644c144cbe72305 (diff)
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.
Diffstat (limited to 'Annex/Init.hs')
-rw-r--r--Annex/Init.hs2
1 files changed, 1 insertions, 1 deletions
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)