aboutsummaryrefslogtreecommitdiff
path: root/Upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'Upgrade')
-rw-r--r--Upgrade/V5.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Upgrade/V5.hs b/Upgrade/V5.hs
index cf273bb16..e4501302d 100644
--- a/Upgrade/V5.hs
+++ b/Upgrade/V5.hs
@@ -9,10 +9,17 @@ module Upgrade.V5 where
import Common.Annex
import Config
+import Annex.InodeSentinal
upgrade :: Bool -> Annex Bool
upgrade automatic = do
unless automatic $
showAction "v5 to v6"
configureSmudgeFilter
+ -- Inode sentinal file was only used in direct mode and when
+ -- locking down files as they were added. In v6, it's used more
+ -- extensively, so make sure it exists, since old repos that didn't
+ -- use direct mode may not have created it.
+ unlessM (isDirect) $
+ createInodeSentinalFile True
return True