From 0deb0a9658f330a6f49ee381e6969fadd92d278a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 11 Mar 2013 01:37:26 -0400 Subject: [PATCH] skip non-directories in status --- Command/Status.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Command/Status.hs b/Command/Status.hs index 5b92537808..ff71e01209 100644 --- a/Command/Status.hs +++ b/Command/Status.hs @@ -68,8 +68,10 @@ start [] = do globalStatus stop start ps = do - mapM_ localStatus ps + mapM_ localStatus =<< filterM isdir ps stop + where + isdir = liftIO . catchBoolIO . (isDirectory <$$> getFileStatus) globalStatus :: Annex () globalStatus = do