From 3d9a43bda29fe9ac8c888443508db3ebd93062da Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 28 Oct 2014 16:03:57 -0400 Subject: info: avoid strange display of here repo when it has NoUUID This happens when info is run in a git repo before git annex init. --- Command/Info.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Command/Info.hs') diff --git a/Command/Info.hs b/Command/Info.hs index 96b7eb6d7..9356830e0 100644 --- a/Command/Info.hs +++ b/Command/Info.hs @@ -221,7 +221,8 @@ repository_mode = simpleStat "repository mode" $ lift $ remote_list :: TrustLevel -> Stat remote_list level = stat n $ nojson $ lift $ do - us <- M.keys <$> (M.union <$> uuidMap <*> remoteMap Remote.name) + us <- filter (/= NoUUID) . M.keys + <$> (M.union <$> uuidMap <*> remoteMap Remote.name) rs <- fst <$> trustPartition level us s <- prettyPrintUUIDs n rs return $ if null s then "0" else show (length rs) ++ "\n" ++ beginning s -- cgit v1.2.3