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.
This commit is contained in:
parent
580adbcaee
commit
1f99a6778f
7 changed files with 52 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue