diff options
author | Joey Hess <joey@kitenet.net> | 2013-04-16 16:17:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-04-16 16:20:30 -0400 |
commit | 0bb7e38c01fda96340b371081ac5a310f2712838 (patch) | |
tree | 43ac4c50e7eb6a66e8a9ba2a4a3266d7c9dc84b5 /Command/Migrate.hs | |
parent | 21d8cff6adf42043acaf90537e83c0ab5b357117 (diff) |
fsck: Check content of direct mode files (only when the inode cache thinks they are unmodified).
I wrote this earlier, but it never worked because it was looking at the
.git/annex/object content, which is not there..
Diffstat (limited to 'Command/Migrate.hs')
-rw-r--r-- | Command/Migrate.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Migrate.hs b/Command/Migrate.hs index e0ef650b0..d8bfd74f1 100644 --- a/Command/Migrate.hs +++ b/Command/Migrate.hs @@ -55,7 +55,7 @@ upgradableKey backend key = isNothing (Types.Key.keySize key) || backendupgradab - be other files still pointing at that key. -} perform :: FilePath -> Key -> Backend -> Backend -> CommandPerform perform file oldkey oldbackend newbackend = do - ifM (Command.Fsck.checkBackend oldbackend oldkey) + ifM (Command.Fsck.checkBackend oldbackend oldkey (Just file)) ( maybe stop go =<< genkey , stop ) |