fsck even files not in backend
This commit is contained in:
parent
498c8e8544
commit
7293ba2940
1 changed files with 2 additions and 6 deletions
|
@ -18,12 +18,8 @@ seek = [withFilesInGit start]
|
||||||
{- Checks a file's backend data for problems. -}
|
{- Checks a file's backend data for problems. -}
|
||||||
start :: SubCmdStartString
|
start :: SubCmdStartString
|
||||||
start file = isAnnexed file $ \(key, backend) -> do
|
start file = isAnnexed file $ \(key, backend) -> do
|
||||||
inbackend <- Backend.hasKey key
|
showStart "fsck" file
|
||||||
if (not inbackend)
|
return $ Just $ perform key backend
|
||||||
then return Nothing
|
|
||||||
else do
|
|
||||||
showStart "fsck" file
|
|
||||||
return $ Just $ perform key backend
|
|
||||||
|
|
||||||
perform :: Key -> Backend -> SubCmdPerform
|
perform :: Key -> Backend -> SubCmdPerform
|
||||||
perform key backend = do
|
perform key backend = do
|
||||||
|
|
Loading…
Reference in a new issue