avoid side message when doing automatic upgrade to v7

An automatic upgrade is supposed to be silent.
This commit is contained in:
Joey Hess 2019-08-26 13:54:52 -04:00
parent 5877a15d7b
commit f6fb4b8cdb
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 1 additions and 1 deletions

View file

@ -113,6 +113,7 @@ initialize' mversion = checkCanInitialize $ do
)
whenM versionSupportsUnlockedPointers $ do
configureSmudgeFilter
showSideAction "scanning for unlocked files"
scanUnlockedFiles True
unlessM isBareRepo $ do
hookWrite postCheckoutHook

View file

@ -80,7 +80,6 @@ ifAnnexed file yes no = maybe no yes =<< lookupFile file
-}
scanUnlockedFiles :: Bool -> Annex ()
scanUnlockedFiles replacefiles = whenM (inRepo Git.Ref.headExists) $ do
showSideAction "scanning for unlocked files"
Database.Keys.runWriter $
liftIO . Database.Keys.SQL.dropAllAssociatedFiles
(l, cleanup) <- inRepo $ Git.LsTree.lsTree Git.LsTree.LsTreeRecursive Git.Ref.headRef