summaryrefslogtreecommitdiff
path: root/CmdLine/Seek.hs
diff options
context:
space:
mode:
Diffstat (limited to 'CmdLine/Seek.hs')
-rw-r--r--CmdLine/Seek.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/CmdLine/Seek.hs b/CmdLine/Seek.hs
index fb303642e..e7c52b63f 100644
--- a/CmdLine/Seek.hs
+++ b/CmdLine/Seek.hs
@@ -204,7 +204,8 @@ withKeyOptions' ko auto mkkeyaction fallbackaction params = do
forM_ l $ \i ->
maybe noop (\k -> keyaction (return [k]))
=<< catKey (LsTree.sha i)
- liftIO $ void cleanup
+ unlessM (liftIO cleanup) $
+ error ("git ls-tree " ++ Git.fromRef b ++ " failed")
prepFiltered :: (FilePath -> CommandStart) -> Annex [FilePath] -> Annex [CommandStart]
prepFiltered a fs = do