From bf1d81bd3ec7b4128d13ca04d2a90c8165d5ee2f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 17 Oct 2013 15:01:23 -0400 Subject: update for DiffTree type change Experimentally, using the raw TopFilePath was right here. --- Command/Unused.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Command') diff --git a/Command/Unused.hs b/Command/Unused.hs index 6210b2115..844cdb19b 100644 --- a/Command/Unused.hs +++ b/Command/Unused.hs @@ -36,6 +36,7 @@ import qualified Annex.Branch import qualified Option import Annex.CatFile import Types.Key +import Git.FilePath def :: [Command] def = [withOptions [fromOption] $ command "unused" paramNothing seek @@ -293,9 +294,9 @@ withKeysReferencedInGitRef a ref = do forM_ ts $ tKey lookAtWorkingTree >=> maybe noop a liftIO $ void clean where - tKey True = fmap fst <$$> Backend.lookupFile . DiffTree.file + tKey True = fmap fst <$$> Backend.lookupFile . getTopFilePath . DiffTree.file tKey False = fileKey . takeFileName . encodeW8 . L.unpack <$$> - catFile ref . DiffTree.file + catFile ref . getTopFilePath . DiffTree.file {- Looks in the specified directory for bad/tmp keys, and returns a list - of those that might still have value, or might be stale and removable. -- cgit v1.2.3