summaryrefslogtreecommitdiff
path: root/Command/Whereis.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-22 14:27:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-22 14:27:50 -0400
commitd3f0106f2ed15a4e4abbc09cc3e985a27dfee662 (patch)
tree2d5867dd13895eabc4def6412d791f543f3e2710 /Command/Whereis.hs
parent78a325b09315efd593e6b729de18f15871a0d643 (diff)
move LocationLog into Annex monad from IO
It will need to run in Annex so it can use Branch
Diffstat (limited to 'Command/Whereis.hs')
-rw-r--r--Command/Whereis.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Command/Whereis.hs b/Command/Whereis.hs
index 2e0fa15f6..bcd4a2e22 100644
--- a/Command/Whereis.hs
+++ b/Command/Whereis.hs
@@ -7,8 +7,6 @@
module Command.Whereis where
-import Control.Monad.State (liftIO)
-
import qualified Annex
import LocationLog
import Command
@@ -31,7 +29,7 @@ start file = isAnnexed file $ \(key, _) -> do
perform :: Key -> CommandPerform
perform key = do
g <- Annex.gitRepo
- uuids <- liftIO $ keyLocations g key
+ uuids <- keyLocations g key
let num = length uuids
showNote $ show num ++ " " ++ copiesplural num
if null $ uuids